]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Garbage collect window_hook
authorPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 18:24:59 +0000 (18:24 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 18:24:59 +0000 (18:24 +0000)
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.

gdb/ChangeLog
gdb/top.c

index 9e35d300725eab1bf4be89b395100a294e2aa03f..d220a0223e13f3100d4269128574dc9a96de80cf 100644 (file)
@@ -1,3 +1,8 @@
+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.
index ed200ba7b4e0844bd176a4bd837e46f433e503bb..b5ee4af33fd8dbe757720d666039a639eb73b5d1 100644 (file)
--- 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 ();