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:
parent
ec098003e2
commit
c90e7d6352
47 changed files with 219 additions and 149 deletions
|
@ -2028,10 +2028,11 @@ as they are loaded."),
|
|||
&maintenance_show_cmdlist);
|
||||
|
||||
/* Add ourselves to objfile event chain. */
|
||||
gdb::observers::new_objfile.attach (thread_db_new_objfile);
|
||||
gdb::observers::new_objfile.attach (thread_db_new_objfile, "linux-thread-db");
|
||||
|
||||
/* Add ourselves to inferior_created event chain.
|
||||
This is needed to handle debugging statically linked programs where
|
||||
the new_objfile observer won't get called for libpthread. */
|
||||
gdb::observers::inferior_created.attach (thread_db_inferior_created);
|
||||
gdb::observers::inferior_created.attach (thread_db_inferior_created,
|
||||
"linux-thread-db");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue