This is the mail archive of the gdb-patches@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] |
Other format: | [Raw text] |
[Sorry for answering late, got preempted...]
In hindsite, it needs to be converted to an observer model (or a new observer model introduced and the current gdb-hooks changed to one of the many observers).
One model that works extremely well is the signals system implemented in glib. I find it very nicely done. It would be nice if we could reuse this, but this is a very very complex machinery doing probably way too much for what we need in GDB.
I would instead suggest something much more simple, like this:
enum notice_kinds { breakpoint_created_notice, breakpoint_deleted_notice, ... invalid_last_notice, /* Should always be last. */ };
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |