This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFC] Inferior stop events


Hi,

The next part of my ongoing quest to get information out of gdb:
inferior_stop events. These events are to inform a UI that the inferior
has stopped running and why it has stopped.

I propose to take "enum stop_reason" from infrun.c and move it into
inferior.h. This enum will be used by both print_stop_reason (which is
really a cli function) and user interfaces, like Insight. (Pretend I
didn't say that.)

It is then my intention to litter infrun.c with event notifications, which
provide a reason for the stop, and some supplemental info on the stop
(signal, exit status, breakpoint#, etc).

Does this sound like a reasonable approach?

Your comments and recommendations appreciated.
Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]