gdb: Remove use of deprecated_interactive_hook
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 18 Jun 2019 12:08:36 +0000 (13:08 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 18 Jun 2019 21:18:33 +0000 (22:18 +0100)
The deprecated_interactive_hook is not used within GDB.  It is used in
gdbtk, however this patch removes that use:

  https://sourceware.org/ml/insight/2019-q2/msg00001.html

So I think there is no longer a reason to keep this hook around.

This patch removes it.  There should be no user visible changes after
this commit.

gdb/ChangeLog:

* defs.h (deprecated_interactive_hook): Delete declaration.
* interps.c (clear_interpreter_hooks): Remove use of
deprecated_interactive_hook.
* top.c (deprecated_interactive_hook): Delete definition.
* utils.c (maybe_quit): Remove use of deprecated_interactive_hook.

gdb/ChangeLog
gdb/defs.h
gdb/interps.c
gdb/top.c
gdb/utils.c

index 83f47b257016b552af1e6ab47120b4737c6ddc03..a2abef1c07694499eddebb605abfad6447a59469 100644 (file)
@@ -1,3 +1,11 @@
+2019-06-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * defs.h (deprecated_interactive_hook): Delete declaration.
+       * interps.c (clear_interpreter_hooks): Remove use of
+       deprecated_interactive_hook.
+       * top.c (deprecated_interactive_hook): Delete definition.
+       * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
+
 2019-06-18  Tom de Vries  <tdevries@suse.de>
 
        PR gdb/24515
index e95d0d434805444840edc54d19ebf8d07e193939..3d878c84e3f17e0522e83d1cb18aaeaad46a6604 100644 (file)
@@ -600,7 +600,6 @@ extern int (*deprecated_query_hook) (const char *, va_list)
      ATTRIBUTE_FPTR_PRINTF(1,0);
 extern void (*deprecated_warning_hook) (const char *, va_list)
      ATTRIBUTE_FPTR_PRINTF(1,0);
-extern void (*deprecated_interactive_hook) (void);
 extern void (*deprecated_readline_begin_hook) (const char *, ...)
      ATTRIBUTE_FPTR_PRINTF_1;
 extern char *(*deprecated_readline_hook) (const char *);
index 363502e767755e155b7f1001b6cd56f29dd8a935..3495dcb53c39dba0151c9252ddfdb74f18b5687d 100644 (file)
@@ -353,7 +353,6 @@ clear_interpreter_hooks (void)
   /*print_frame_more_info_hook = 0; */
   deprecated_query_hook = 0;
   deprecated_warning_hook = 0;
-  deprecated_interactive_hook = 0;
   deprecated_readline_begin_hook = 0;
   deprecated_readline_hook = 0;
   deprecated_readline_end_hook = 0;
index 857207c376735b8379bf3d705cb5399c2a977098..be736b0a87d364238df95c06683a0adcb8f496af 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -240,11 +240,6 @@ void (*deprecated_readline_end_hook) (void);
 void (*deprecated_attach_hook) (void);
 void (*deprecated_detach_hook) (void);
 
-/* Called during long calculations to allow GUI to repair window
-   damage, and to check for stop buttons, etc...  */
-
-void (*deprecated_interactive_hook) (void);
-
 /* Called when going to wait for the target.  Usually allows the GUI
    to run while waiting for target events.  */
 
index c7922cf7f56e9a48c71ef8ac4a4b58961dbc37e4..7120a92258445063e271ee2c802189fafc1c9314 100644 (file)
@@ -678,9 +678,6 @@ maybe_quit (void)
     quit ();
 
   quit_handler ();
-
-  if (deprecated_interactive_hook)
-    deprecated_interactive_hook ();
 }
 
 \f