* fixed the passing of the breakpoint number to the DoSelectSourceLine method,

in the gdb/mi interface, which fixes various features, such as showing a
  popup window with the old and new value of the variable, when stopping on a
  watch, etc.

git-svn-id: trunk@29749 -
This commit is contained in:
nickysn 2015-02-18 01:02:53 +00:00
parent 9f31c26996
commit c754fa35d2

View File

@ -301,11 +301,15 @@ begin
'end-stepping-range',
'function-finished':
begin
{ this resets stop_breakpoint_number to zero, so it's important to set it *afterwards* }
DebuggerScreen;
{ now, set stop_breakpoint_number (if applicable) }
if StopReason = 'breakpoint-hit' then
stop_breakpoint_number := GDB.ExecAsyncOutput.Parameters['bkptno'].AsLongInt;
if StopReason = 'watchpoint-trigger' then
stop_breakpoint_number := GDB.ExecAsyncOutput.Parameters['wpt'].AsTuple['number'].AsLongInt;
DebuggerScreen;
Debuggee_started := True;
current_pc := GDB.ExecAsyncOutput.Parameters['frame'].AsTuple['addr'].AsPtrInt;
if Assigned(GDB.ExecAsyncOutput.Parameters['frame'].AsTuple['fullname']) then