mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 18:20:12 +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:
@ -417,8 +417,10 @@ gdbpy_initialize_finishbreakpoints (void)
|
||||
(PyObject *) &finish_breakpoint_object_type) < 0)
|
||||
return -1;
|
||||
|
||||
gdb::observers::normal_stop.attach (bpfinishpy_handle_stop);
|
||||
gdb::observers::inferior_exit.attach (bpfinishpy_handle_exit);
|
||||
gdb::observers::normal_stop.attach (bpfinishpy_handle_stop,
|
||||
"py-finishbreakpoint");
|
||||
gdb::observers::inferior_exit.attach (bpfinishpy_handle_exit,
|
||||
"py-finishbreakpoint");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user