Response handlers for GDB Commands or standalone response handlers They get the last response line from gdb and can decide whether this line is destined for this handler, the response is not complete yet (requests another response line) or if this line is not of interest for this handler at all
        /// <summary>
        /// Constructs a new break command
        /// </summary>
        /// <param name="breakSymbol">Symbol to break at</param>
        public SetBreakpointNameCmd(ISymbol breakSymbol, SetBreakpointRH.SetBreakpointDelegate rhCb, GDBSubProcess gdbProc)
            : base(gdbProc)
        {
            _breakSymbol = breakSymbol;

            _rh = new SetBreakpointRH(rhCb, _gdbProc);
        }
예제 #2
0
        /// <summary>
        /// Constructs a new break command
        /// </summary>
        /// <param name="address">Address to set a breakpoint at. Use Symbol Table to translate named symbols to addresses</param>
        public SetBreakpointCmd(UInt64 address, SetBreakpointRH.SetBreakpointDelegate rhCb, GDBSubProcess gdbProc)
            : base(gdbProc)
        {
            _address = address;

            _rh = new SetBreakpointRH(rhCb, _gdbProc);
        }
예제 #3
0
        public TargetCmd(string targetSpecifier, Action<bool> connectionStatusCb, GDBSubProcess gdbProc)
            : base(gdbProc)
        {
            _targetSpecifier = targetSpecifier;

            _responseHandler = new TargetRH(connectionStatusCb, _gdbProc);
        }
예제 #4
0
 protected void RegisterPermanentResponseHandler(GDBResponseHandler responseHandler)
 {
     _permanentResponseHandlers.Add(responseHandler);
 }
예제 #5
0
 public SimpleCmd(string cmd, GDBResponseHandler rh, GDBSubProcess gdbProc)
     : base(gdbProc)
 {
     _cmd = cmd;
     _responseHandler = rh;
 }
 /// <summary>
 /// Constructs a new delete breakpoints command
 /// </summary>
 /// <param name="num">Number of the breakpoint to delete</param>
 public DeleteBreakpointCmd(int num, GDBSubProcess gdbProc)
     : base(gdbProc)
 {
     _breakpointNum = num;
     _rh = new DeleteBreakpointRH (gdbProc);
 }