Re: How does GDB/MI give the current frame

Jason Molenda
2004-07-15T20:19:57Z

On Jul 15, 2004, at 1:04 PM, Jason Molenda wrote:

> For what it's worth, at Apple we've done what Andrew is proposing.
> Our method spits out a "MI_HOOK_RESULT" notification on the ^done
> result whenever the console command entered by the user has changed
> the state in an important way. e.g.

[...]

>
> FWIW, here's the list of notification hooks we currently generate:
> breakpoint_create, breakpoint_modify, breakpoint_delete,
> stack_changed, frame_changed, thread_changed.
>

I should add that we also call output_control_change_notification()
with "stepping" or "continuing" when the user enters a console command
that resumes execution. e.g.

(gdb)
-interpreter-exec console-quoted step
^stepping
^running
(gdb)
*stopped,time=
{wallclock="0.01470",user="0.00635",system="0.00845",start="1089922425.6
47144",end="1089922425.661845"},reason="end-stepping-range",thread-
id="1"
(gdb)
-interpreter-exec console-quoted continue
~"Continuing.\n"
^continuing
^running

So the UI knows when the user is resuming the inferior behind its back.

J