Sfoglia il codice sorgente

- removed last_breakpoint_number from the gdb/mi interface. It didn't work in
older GDB versions and code in fpdebug.pas should no longer use it. Instead,
it should use BreakpointInsert or WatchpointInsert for adding a breakpoint or
watchpoint and getting its ID.

git-svn-id: trunk@29750 -

nickysn 10 anni fa
parent
commit
a861bbc5ae
1 ha cambiato i file con 11 aggiunte e 15 eliminazioni
  1. 11 15
      ide/gdbmiint.pas

+ 11 - 15
ide/gdbmiint.pas

@@ -80,7 +80,6 @@ type
     signal_name: PChar;
     signal_string: PChar;
     current_pc: CORE_ADDR;
-    last_breakpoint_number: LongInt;
     switch_to_user: Boolean;
 
     { init }
@@ -336,22 +335,19 @@ begin
 end;
 
 procedure TGDBInterface.ProcessResponse;
-var
-  NAO: TGDBMI_AsyncOutput;
-  Code: LongInt;
-begin
-  for NAO in GDB.NotifyAsyncOutput do
-  begin
-    if NAO.AsyncClass = 'breakpoint-created' then
-    begin
+//var
+//  NAO: TGDBMI_AsyncOutput;
+//  Code: LongInt;
+begin
+//  for NAO in GDB.NotifyAsyncOutput do
+//  begin
+//    if NAO.AsyncClass = 'breakpoint-created' then
+//    begin
 //      Writeln('BREAKPOINT created!');
-      Val(NAO.Parameters['bkpt'].AsTuple['number'].AsString, last_breakpoint_number, Code);
+//      Val(NAO.Parameters['bkpt'].AsTuple['number'].AsString, last_breakpoint_number, Code);
 //      Writeln('last_breakpoint_number=', last_breakpoint_number);
-//      if Assigned(NAO.Parameters['bkpt'].AsTuple['file']) then
-//        Writeln('file = ', NAO.Parameters['bkpt'].AsTuple['file'].AsString);
-//      Readln;
-    end;
-  end;
+//    end;
+//  end;
 end;
 
 function TGDBInterface.error: Boolean;