This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 04/11] Remove unused deprecated_interactive_hook
- From: Philipp Rudo <prudo at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Cc: arnez at linux dot vnet dot ibm dot com
- Date: Tue, 28 Feb 2017 15:50:09 +0100
- Subject: [PATCH 04/11] Remove unused deprecated_interactive_hook
- Authentication-results: sourceware.org; auth=none
- References: <20170228145016.22604-1-prudo@linux.vnet.ibm.com>
Nobody actually uses this hook anymore. So simply remove it.
gdb/ChangeLog
* defs.h (deprecated_interactive_hook): Remove.
* top.c (deprecated_interactive_hook): Remove.
* interps.c (clear_interpreter_hooks): Adjust.
* utils.c (maybe_quit): Adjust.
---
gdb/defs.h | 1 -
gdb/interps.c | 1 -
gdb/top.c | 5 -----
gdb/utils.c | 3 ---
4 files changed, 10 deletions(-)
diff --git a/gdb/defs.h b/gdb/defs.h
index 2052dd7..f83fd8a 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -672,7 +672,6 @@ extern void (*deprecated_print_frame_info_listing_hook) (struct symtab * s,
int noerror);
extern int (*deprecated_query_hook) (const char *, va_list)
ATTRIBUTE_FPTR_PRINTF(1,0);
-extern void (*deprecated_interactive_hook) (void);
extern void (*deprecated_readline_begin_hook) (char *, ...)
ATTRIBUTE_FPTR_PRINTF_1;
extern char *(*deprecated_readline_hook) (const char *);
diff --git a/gdb/interps.c b/gdb/interps.c
index 1336aaa..560ba70 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -391,7 +391,6 @@ clear_interpreter_hooks (void)
deprecated_print_frame_info_listing_hook = 0;
/*print_frame_more_info_hook = 0; */
deprecated_query_hook = 0;
- deprecated_interactive_hook = 0;
deprecated_readline_begin_hook = 0;
deprecated_readline_hook = 0;
deprecated_readline_end_hook = 0;
diff --git a/gdb/top.c b/gdb/top.c
index 4428b87..3f8dfa9 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -216,11 +216,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 987373a..ed193d3 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -955,9 +955,6 @@ maybe_quit (void)
quit ();
quit_handler ();
-
- if (deprecated_interactive_hook)
- deprecated_interactive_hook ();
}
--
2.8.4