]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2006-12-06 Andrew Stubbs <andrew.stubbs@st.com>
authorAndrew Stubbs <andrew.stubbs@st.com>
Wed, 6 Dec 2006 16:54:13 +0000 (16:54 +0000)
committerAndrew Stubbs <andrew.stubbs@st.com>
Wed, 6 Dec 2006 16:54:13 +0000 (16:54 +0000)
* event-top.c (command_handler): On EOF, print 'quit' and run quit
command via execute_command such that hooks and trace work.
* utils.c (defaulted_query): On EOF, print default answer and newline.

gdb/ChangeLog
gdb/event-top.c
gdb/utils.c

index fc96d2ef3d003768907aaeee3c59a275e9bc754c..2d9489baccd9d0a6c8f47c23e5b753e797865fca 100644 (file)
@@ -1,3 +1,9 @@
+2006-12-06  Andrew Stubbs  <andrew.stubbs@st.com>
+
+       * event-top.c (command_handler): On EOF, print 'quit' and run quit
+       command via execute_command such that hooks and trace work.
+       * utils.c (defaulted_query): On EOF, print default answer and newline.
+
 2006-12-05  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * cp-valprint.c, p-valprint.c: Revert last change.
index 6e26002dcaa01e3ddd58cdd2b459d7b8180fc53c..d7d6d972fdad8ef1050b6d34482169eefa67d797 100644 (file)
@@ -501,7 +501,10 @@ command_handler (char *command)
      but GDB is still alive. In such a case, we just quit gdb
      killing the inferior program too. */
   if (command == 0)
-    quit_command ((char *) 0, stdin == instream);
+    {
+      printf_unfiltered ("quit\n");
+      execute_command ("quit", stdin == instream);
+    }
 
   time_at_cmd_start = get_run_time ();
 
index b33eadd1878610956837a3c00b4c0f8ddbd906c1..ab8bb4008d5f0d8c14901b12e2368850effeebd1 100644 (file)
@@ -1230,6 +1230,7 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args)
       clearerr (stdin);                /* in case of C-d */
       if (answer == EOF)       /* C-d */
        {
+         printf_filtered ("EOF [assumed %c]\n", def_answer);
          retval = def_value;
          break;
        }