• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂8a243832540cb3bd246192db1f0a4dfa44d92dcf (tree)
時間2016-03-10 03:24:59
作者Pedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

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.

Change Summary

差異

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2016-03-09 Pedro Alves <palves@redhat.com>
22
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+
38 * gdb.base/command-line-input.exp: New file.
49
510 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -124,12 +124,6 @@ char *current_directory;
124124 /* The directory name is actually stored here (usually). */
125125 char gdb_dirbuf[1024];
126126
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-
133127 /* Buffer used for reading command lines, and the size
134128 allocated for it so far. */
135129
@@ -545,9 +539,6 @@ command_loop (void)
545539
546540 while (instream && !feof (instream))
547541 {
548- if (window_hook && instream == stdin)
549- (*window_hook) (instream, get_prompt ());
550-
551542 clear_quit_flag ();
552543 if (instream == stdin)
553544 reinitialize_more_filter ();