From c90e7d6352b2e16ac007d08b2e03ae10081147b5 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 24 Apr 2021 19:26:04 -0400 Subject: 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) : Add name parameter. : New field. : Add name parameter, update all callers. Change-Id: Ie0cc4664925215b8d2b09e026011b7803549fba0 --- gdb/annotate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/annotate.c') diff --git a/gdb/annotate.c b/gdb/annotate.c index 3d42aec..8c81373 100644 --- a/gdb/annotate.c +++ b/gdb/annotate.c @@ -627,8 +627,8 @@ void _initialize_annotate (); void _initialize_annotate () { - gdb::observers::breakpoint_created.attach (breakpoint_changed); - gdb::observers::breakpoint_deleted.attach (breakpoint_changed); - gdb::observers::breakpoint_modified.attach (breakpoint_changed); - gdb::observers::thread_exit.attach (annotate_thread_exited); + gdb::observers::breakpoint_created.attach (breakpoint_changed, "annotate"); + gdb::observers::breakpoint_deleted.attach (breakpoint_changed, "annotate"); + gdb::observers::breakpoint_modified.attach (breakpoint_changed, "annotate"); + gdb::observers::thread_exit.attach (annotate_thread_exited, "annotate"); } -- cgit v1.1