mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
gdbsupport, gdb: give names to observers
Give a name to each observer, this will help produce more meaningful debug message. gdbsupport/ChangeLog: * observable.h (class observable) <struct observer> <observer>: Add name parameter. <name>: New field. <attach>: Add name parameter, update all callers. Change-Id: Ie0cc4664925215b8d2b09e026011b7803549fba0
This commit is contained in:
@ -627,8 +627,8 @@ void _initialize_annotate ();
|
||||
void
|
||||
_initialize_annotate ()
|
||||
{
|
||||
gdb::observers::breakpoint_created.attach (breakpoint_changed);
|
||||
gdb::observers::breakpoint_deleted.attach (breakpoint_changed);
|
||||
gdb::observers::breakpoint_modified.attach (breakpoint_changed);
|
||||
gdb::observers::thread_exit.attach (annotate_thread_exited);
|
||||
gdb::observers::breakpoint_created.attach (breakpoint_changed, "annotate");
|
||||
gdb::observers::breakpoint_deleted.attach (breakpoint_changed, "annotate");
|
||||
gdb::observers::breakpoint_modified.attach (breakpoint_changed, "annotate");
|
||||
gdb::observers::thread_exit.attach (annotate_thread_exited, "annotate");
|
||||
}
|
||||
|
Reference in New Issue
Block a user