Replace most uses of deprecated_throw_reason with quit.

http://sourceware.org/ml/gdb-patches/2013-07/msg00778.html

gdb/ChangeLog

        * monitor.c (monitor_interrupt_query): Replace use of
        deprecated_throw_reason with quit.
        * nto-procfs.c (interrupt_query): Likewise.
        * remote-fileio.c (remote_fileio_sig_exit): Likewise.
        * remote-mips.c (mips_kill): Likewise.
        * remote.c (interrupt_query): Likewise.
This commit is contained in:
Andrew Burgess 2013-07-31 12:44:33 +00:00
parent 8150913ba7
commit 039e3c2282
6 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,12 @@
2013-07-31 Andrew Burgess <aburgess@broadcom.com>
* monitor.c (monitor_interrupt_query): Replace use of
deprecated_throw_reason with quit.
* nto-procfs.c (interrupt_query): Likewise.
* remote-fileio.c (remote_fileio_sig_exit): Likewise.
* remote-mips.c (mips_kill): Likewise.
* remote.c (interrupt_query): Likewise.
2013-07-31 Andrew Burgess <aburgess@broadcom.com> 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
* utils.c (internal_verror): Replace use of deprecated_throw_reason * utils.c (internal_verror): Replace use of deprecated_throw_reason

View File

@ -1036,7 +1036,7 @@ monitor_interrupt_query (void)
Give up (and stop debugging it)? "))) Give up (and stop debugging it)? ")))
{ {
target_mourn_inferior (); target_mourn_inferior ();
deprecated_throw_reason (RETURN_QUIT); quit ();
} }
target_terminal_inferior (); target_terminal_inferior ();

View File

@ -694,7 +694,7 @@ interrupt_query (void)
Give up (and stop debugging it)? "))) Give up (and stop debugging it)? ")))
{ {
target_mourn_inferior (); target_mourn_inferior ();
deprecated_throw_reason (RETURN_QUIT); quit ();
} }
target_terminal_inferior (); target_terminal_inferior ();

View File

@ -513,7 +513,7 @@ remote_fileio_sig_exit (void)
static void static void
async_remote_fileio_interrupt (gdb_client_data arg) async_remote_fileio_interrupt (gdb_client_data arg)
{ {
deprecated_throw_reason (RETURN_QUIT); quit ();
} }
static void static void

View File

@ -2291,8 +2291,7 @@ Give up (and stop debugging it)? ")))
printf_unfiltered ("Ending remote MIPS debugging.\n"); printf_unfiltered ("Ending remote MIPS debugging.\n");
target_mourn_inferior (); target_mourn_inferior ();
quit ();
deprecated_throw_reason (RETURN_QUIT);
} }
target_terminal_inferior (); target_terminal_inferior ();

View File

@ -5165,7 +5165,7 @@ interrupt_query (void)
if (target_can_async_p ()) if (target_can_async_p ())
{ {
signal (SIGINT, handle_sigint); signal (SIGINT, handle_sigint);
deprecated_throw_reason (RETURN_QUIT); quit ();
} }
else else
{ {
@ -5173,7 +5173,7 @@ interrupt_query (void)
Give up (and stop debugging it)? "))) Give up (and stop debugging it)? ")))
{ {
remote_unpush_target (); remote_unpush_target ();
deprecated_throw_reason (RETURN_QUIT); quit ();
} }
} }