summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-02-01 21:06:17 +0000
committerPedro Alves <palves@redhat.com>2016-02-18 15:20:17 +0000
commit3cbe7c5cee0bd579c1b9905edeb9cacb0c45de55 (patch)
tree1dc606a3dab51fcc891ce0612841b437bb718647
parent5ffbfb0f36c3bab87dfdbd355c4cf5dd5c483bed (diff)
downloadbinutils-gdb-3cbe7c5cee0bd579c1b9905edeb9cacb0c45de55.tar.gz
Garbage collect window_hook
I checked, and Insight doesn't set this. gdb/ChangeLog: 2016-02-18 Pedro Alves <palves@redhat.com> * top.c (window_hook): Delete. (command_loop): Remove references to window_hook.
-rw-r--r--gdb/top.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/top.c b/gdb/top.c
index ed200ba7b4e..b5ee4af33fd 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -124,12 +124,6 @@ char *current_directory;
/* The directory name is actually stored here (usually). */
char gdb_dirbuf[1024];
-/* Function to call before reading a command, if nonzero.
- The function receives two args: an input stream,
- and a prompt string. */
-
-void (*window_hook) (FILE *, char *);
-
/* Buffer used for reading command lines, and the size
allocated for it so far. */
@@ -545,9 +539,6 @@ command_loop (void)
while (instream && !feof (instream))
{
- if (window_hook && instream == stdin)
- (*window_hook) (instream, get_prompt ());
-
clear_quit_flag ();
if (instream == stdin)
reinitialize_more_filter ();