GNU Binutils with patches for OS216
Révision | 8a243832540cb3bd246192db1f0a4dfa44d92dcf (tree) |
---|---|
l'heure | 2016-03-10 03:24:59 |
Auteur | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2016-03-09 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * top.c (window_hook): Delete. | |
4 | + (command_loop): Remove references to window_hook. | |
5 | + | |
6 | +2016-03-09 Pedro Alves <palves@redhat.com> | |
7 | + | |
3 | 8 | * gdb.base/command-line-input.exp: New file. |
4 | 9 | |
5 | 10 | 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net> |
@@ -124,12 +124,6 @@ char *current_directory; | ||
124 | 124 | /* The directory name is actually stored here (usually). */ |
125 | 125 | char gdb_dirbuf[1024]; |
126 | 126 | |
127 | -/* Function to call before reading a command, if nonzero. | |
128 | - The function receives two args: an input stream, | |
129 | - and a prompt string. */ | |
130 | - | |
131 | -void (*window_hook) (FILE *, char *); | |
132 | - | |
133 | 127 | /* Buffer used for reading command lines, and the size |
134 | 128 | allocated for it so far. */ |
135 | 129 |
@@ -545,9 +539,6 @@ command_loop (void) | ||
545 | 539 | |
546 | 540 | while (instream && !feof (instream)) |
547 | 541 | { |
548 | - if (window_hook && instream == stdin) | |
549 | - (*window_hook) (instream, get_prompt ()); | |
550 | - | |
551 | 542 | clear_quit_flag (); |
552 | 543 | if (instream == stdin) |
553 | 544 | reinitialize_more_filter (); |