mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 23:49:07 +02:00
* 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:
parent
9f31c26996
commit
c754fa35d2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user