mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 21:34:42 +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:
@ -1125,9 +1125,12 @@ gdbpy_initialize_breakpoints (void)
|
||||
(PyObject *) &breakpoint_object_type) < 0)
|
||||
return -1;
|
||||
|
||||
gdb::observers::breakpoint_created.attach (gdbpy_breakpoint_created);
|
||||
gdb::observers::breakpoint_deleted.attach (gdbpy_breakpoint_deleted);
|
||||
gdb::observers::breakpoint_modified.attach (gdbpy_breakpoint_modified);
|
||||
gdb::observers::breakpoint_created.attach (gdbpy_breakpoint_created,
|
||||
"py-breakpoint");
|
||||
gdb::observers::breakpoint_deleted.attach (gdbpy_breakpoint_deleted,
|
||||
"py-breakpoint");
|
||||
gdb::observers::breakpoint_modified.attach (gdbpy_breakpoint_modified,
|
||||
"py-breakpoint");
|
||||
|
||||
/* Add breakpoint types constants. */
|
||||
for (i = 0; pybp_codes[i].name; ++i)
|
||||
|
Reference in New Issue
Block a user