aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-hooks.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index cf48e70..70874e5 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -48,20 +48,13 @@
#include "gdb_curses.h"
-static void tui_on_objfiles_changed ()
+static void
+tui_new_objfile_hook (struct objfile* objfile)
{
if (tui_active)
tui_display_main ();
}
-static void
-tui_new_objfile_hook (struct objfile* objfile)
-{ tui_on_objfiles_changed (); }
-
-static void
-tui_all_objfiles_removed (program_space *pspace)
-{ tui_on_objfiles_changed (); }
-
/* Observer for the register_changed notification. */
static void
@@ -281,6 +274,4 @@ _initialize_tui_hooks ()
{
/* Install the permanent hooks. */
gdb::observers::new_objfile.attach (tui_new_objfile_hook, "tui-hooks");
- gdb::observers::all_objfiles_removed.attach (tui_all_objfiles_removed,
- "tui-hooks");
}