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
コード例 #1
0
        /// <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
ファイル: TargetCmd.cs プロジェクト: areiter/InMemoryFuzzing
        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
ファイル: SimpleCmd.cs プロジェクト: areiter/InMemoryFuzzing
 public SimpleCmd(string cmd, GDBResponseHandler rh, GDBSubProcess gdbProc)
     : base(gdbProc)
 {
     _cmd = cmd;
     _responseHandler = rh;
 }
コード例 #6
0
 /// <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);
 }