gdbsupport, gdb: give names to observers
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Apr 2021 23:26:04 +0000 (19:26 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Apr 2021 23:26:41 +0000 (19:26 -0400)
commitc90e7d6352b2e16ac007d08b2e03ae10081147b5
tree2ca6bb8a1d338ff48f2eed24dcb25300e4204f54
parentec098003e27d67bca9e9880320e26ab8ad30fe31
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
47 files changed:
gdb/ada-lang.c
gdb/ada-tasks.c
gdb/agent.c
gdb/aix-thread.c
gdb/annotate.c
gdb/arm-tdep.c
gdb/auto-load.c
gdb/auxv.c
gdb/break-catch-syscall.c
gdb/breakpoint.c
gdb/bsd-uthread.c
gdb/cli/cli-interp.c
gdb/dummy-frame.c
gdb/extension.c
gdb/frame.c
gdb/guile/scm-breakpoint.c
gdb/inflow.c
gdb/infrun.c
gdb/jit.c
gdb/linux-tdep.c
gdb/linux-thread-db.c
gdb/m68k-linux-tdep.c
gdb/mi/mi-cmd-break.c
gdb/mi/mi-interp.c
gdb/printcmd.c
gdb/python/py-breakpoint.c
gdb/python/py-finishbreakpoint.c
gdb/python/py-inferior.c
gdb/python/py-unwind.c
gdb/ravenscar-thread.c
gdb/record-btrace.c
gdb/regcache.c
gdb/remote.c
gdb/sol-thread.c
gdb/solib-aix.c
gdb/solib-svr4.c
gdb/solib.c
gdb/symfile-mem.c
gdb/symfile.c
gdb/symtab.c
gdb/tui/tui-hooks.c
gdb/tui/tui-interp.c
gdb/tui/tui-win.c
gdb/tui/tui-winsource.c
gdb/unittests/observable-selftests.c
gdbsupport/ChangeLog
gdbsupport/observable.h