This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Garbage collect window_hook
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 9 Mar 2016 18:37:18 -0000
- Subject: [binutils-gdb] Garbage collect window_hook
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8a243832540cb3bd246192db1f0a4dfa44d92dcf
commit 8a243832540cb3bd246192db1f0a4dfa44d92dcf
Author: Pedro Alves <palves@redhat.com>
Date: Wed Mar 9 18:24:59 2016 +0000
Garbage collect window_hook
I checked, and Insight doesn't set this.
gdb/ChangeLog:
2016-03-09 Pedro Alves <palves@redhat.com>
* top.c (window_hook): Delete.
(command_loop): Remove references to window_hook.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/top.c | 9 ---------
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9e35d30..d220a02 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2016-03-09 Pedro Alves <palves@redhat.com>
+ * top.c (window_hook): Delete.
+ (command_loop): Remove references to window_hook.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
* gdb.base/command-line-input.exp: New file.
2016-03-09 Marcin KoÅ?cielnicki <koriakin@0x04.net>
diff --git a/gdb/top.c b/gdb/top.c
index ed200ba..b5ee4af 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 ();