aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-13 00:12:50 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-13 00:12:50 +0000
commit2a78bfb53ccd6d78e97293502ae0b41ce4d120a5 (patch)
tree2a191c4e4251c9bbe69b06958c6b83360ffe2e9f /gdb/remote.c
parentcd0960cf4e3505cf968879816e0c2c6b522a146e (diff)
downloadgdb-2a78bfb53ccd6d78e97293502ae0b41ce4d120a5.zip
gdb-2a78bfb53ccd6d78e97293502ae0b41ce4d120a5.tar.gz
gdb-2a78bfb53ccd6d78e97293502ae0b41ce4d120a5.tar.bz2
2005-01-12 Andrew Cagney <cagney@gnu.org>
* exceptions.h (throw_reason): Rename throw_exception. (enum errors, struct exception): Define. (catch_exception_ftype): Define. (catch_exception, throw_exception): Declare. * exceptions.c (throw_exception): Rewrite. (throw_reason): New function. (struct catcher, catcher_state_machine): Replace "reason" with "exception", delete "gdberrmsg". (catch_exception): New function. (catcher_init): Replace "gdberrmsg" parameter with "exception". (catch_errors, catch_exceptions_with_msg): Re-implement passing exception to catcher_init. * utils.c (error_silent, error_stream_1): Use throw_reason. (internal_verror, quit): Ditto. * breakpoint.c (insert_catchpoint, break_command_1): Ditto. * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto. * remote.c (remote_open_1, interrupt_query): Ditto.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 1a6f8b5..178c0a0 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2257,7 +2257,7 @@ remote_open_1 (char *name, int from_tty, struct target_ops *target,
pop_target ();
if (async_p)
wait_forever_enabled_p = 1;
- throw_exception (ex);
+ throw_reason (ex);
}
if (async_p)
@@ -2723,7 +2723,7 @@ interrupt_query (void)
Give up (and stop debugging it)? "))
{
target_mourn_inferior ();
- throw_exception (RETURN_QUIT);
+ throw_reason (RETURN_QUIT);
}
target_terminal_inferior ();