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.
This commit is contained in:
Andrew Stubbs
2006-12-06 16:49:57 +00:00
parent 4fd454c89d
commit fa3fd85b06
3 changed files with 11 additions and 1 deletions

View 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;
}