aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2006-12-06 16:49:57 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2006-12-06 16:49:57 +0000
commitfa3fd85b0634c30ae1adeeb80e92c03fc1d4f08a (patch)
treeef217de8b962ad6feded29629d14263aeb200d96 /gdb/utils.c
parent4fd454c89d63c73fd5e99ce5eb2a3174fcfd4f5d (diff)
downloadgdb-fa3fd85b0634c30ae1adeeb80e92c03fc1d4f08a.zip
gdb-fa3fd85b0634c30ae1adeeb80e92c03fc1d4f08a.tar.gz
gdb-fa3fd85b0634c30ae1adeeb80e92c03fc1d4f08a.tar.bz2
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.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index b33eadd..ab8bb40 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -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;
}