/* Tcl/Tk command definitions for Insight - Breakpoints.
- Copyright (C) 2001-2017 Free Software Foundation, Inc.
+ Copyright (C) 2001-2018 Free Software Foundation, Inc.
This file is part of GDB.
#include <tcl.h>
#include "gdbtk.h"
#include "gdbtk-cmds.h"
-#include "observer.h"
#include "arch-utils.h"
#include "exceptions.h"
#include "top.h"
#include "annotate.h"
#include "cli/cli-decode.h"
-#include "observer.h"
+#include "observable.h"
#include "gdbthread.h"
#include "event-loop.h"
gdbtk_add_hooks (void)
{
/* Gdb observers */
- observer_attach_breakpoint_created (gdbtk_create_breakpoint);
- observer_attach_breakpoint_modified (gdbtk_modify_breakpoint);
- observer_attach_breakpoint_deleted (gdbtk_delete_breakpoint);
- observer_attach_architecture_changed (gdbtk_architecture_changed);
- observer_attach_memory_changed (gdbtk_memory_changed);
- observer_attach_command_param_changed (gdbtk_param_changed);
- observer_attach_register_changed (gdbtk_register_changed);
- observer_attach_traceframe_changed (gdbtk_trace_find);
+ gdb::observers::breakpoint_created.attach (gdbtk_create_breakpoint);
+ gdb::observers::breakpoint_modified.attach (gdbtk_modify_breakpoint);
+ gdb::observers::breakpoint_deleted.attach (gdbtk_delete_breakpoint);
+ gdb::observers::architecture_changed.attach (gdbtk_architecture_changed);
+ gdb::observers::memory_changed.attach (gdbtk_memory_changed);
+ gdb::observers::command_param_changed.attach (gdbtk_param_changed);
+ gdb::observers::register_changed.attach (gdbtk_register_changed);
+ gdb::observers::traceframe_changed.attach (gdbtk_trace_find);
/* Hooks */
deprecated_call_command_hook = gdbtk_call_command;
diff -Naurp a/gdb/Makefile.in b/gdb/Makefile.in
--- a/gdb/Makefile.in 2016-11-25 14:24:44.190083746 +0100
+++ b/gdb/Makefile.in 2016-11-25 14:36:23.590282737 +0100
-@@ -513,7 +513,7 @@ SUBDIR_GDBTK_SRCS = \
+@@ -517,7 +517,7 @@ SUBDIR_GDBTK_SRCS = \
SUBDIR_GDBTK_DEPS = $(LIBGUI) $(TCL_DEPS) $(TK_DEPS)
SUBDIR_GDBTK_LDFLAGS =
--- binutils-gdb.orig/gdb/event-loop.c 2018-03-04 02:53:18.489945815 +0100
+++ binutils-gdb.new/gdb/event-loop.c 2018-03-04 02:55:37.714311378 +0100
@@ -37,13 +37,6 @@
- #include "observer.h"
+ #include "observable.h"
#include "top.h"
-/* Tell create_file_handler what events we are interested in.