mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00: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:
@@ -1478,8 +1478,10 @@ void
|
||||
_initialize_tasks ()
|
||||
{
|
||||
/* Attach various observers. */
|
||||
gdb::observers::normal_stop.attach (ada_tasks_normal_stop_observer);
|
||||
gdb::observers::new_objfile.attach (ada_tasks_new_objfile_observer);
|
||||
gdb::observers::normal_stop.attach (ada_tasks_normal_stop_observer,
|
||||
"ada-tasks");
|
||||
gdb::observers::new_objfile.attach (ada_tasks_new_objfile_observer,
|
||||
"ada-tasks");
|
||||
|
||||
/* Some new commands provided by this module. */
|
||||
add_info ("tasks", info_tasks_command,
|
||||
|
||||
Reference in New Issue
Block a user