diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-06-18 13:08:36 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-06-18 22:18:33 +0100 |
commit | 494986d596a977e1d24f9f068696f5b3e993ebf7 (patch) | |
tree | d2b2abaf645b4b15fdb7d761dc49504c714dd7a1 | |
parent | 0ed4690a67e2c4703d9088312de652d0d5f1aaaf (diff) | |
download | gdb-494986d596a977e1d24f9f068696f5b3e993ebf7.zip gdb-494986d596a977e1d24f9f068696f5b3e993ebf7.tar.gz gdb-494986d596a977e1d24f9f068696f5b3e993ebf7.tar.bz2 |
gdb: Remove use of deprecated_interactive_hook
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.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/defs.h | 1 | ||||
-rw-r--r-- | gdb/interps.c | 1 | ||||
-rw-r--r-- | gdb/top.c | 5 | ||||
-rw-r--r-- | gdb/utils.c | 3 |
5 files changed, 8 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 83f47b2..a2abef1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 @@ -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 *); diff --git a/gdb/interps.c b/gdb/interps.c index 363502e..3495dcb 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -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; @@ -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. */ diff --git a/gdb/utils.c b/gdb/utils.c index c7922cf..7120a92 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -678,9 +678,6 @@ maybe_quit (void) quit (); quit_handler (); - - if (deprecated_interactive_hook) - deprecated_interactive_hook (); } |