forked from Imagelibrary/binutils-gdb
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:
@@ -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-06 Vladimir Prus <vladimir@codesourcery.com>
|
2006-12-06 Vladimir Prus <vladimir@codesourcery.com>
|
||||||
|
|
||||||
* varobj.c (cplus_value_of_child): When accessing
|
* varobj.c (cplus_value_of_child): When accessing
|
||||||
|
|||||||
@@ -501,7 +501,10 @@ command_handler (char *command)
|
|||||||
but GDB is still alive. In such a case, we just quit gdb
|
but GDB is still alive. In such a case, we just quit gdb
|
||||||
killing the inferior program too. */
|
killing the inferior program too. */
|
||||||
if (command == 0)
|
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 ();
|
time_at_cmd_start = get_run_time ();
|
||||||
|
|
||||||
|
|||||||
@@ -1230,6 +1230,7 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args)
|
|||||||
clearerr (stdin); /* in case of C-d */
|
clearerr (stdin); /* in case of C-d */
|
||||||
if (answer == EOF) /* C-d */
|
if (answer == EOF) /* C-d */
|
||||||
{
|
{
|
||||||
|
printf_filtered ("EOF [assumed %c]\n", def_answer);
|
||||||
retval = def_value;
|
retval = def_value;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user