From: Andrew Cagney Date: Tue, 18 Jan 2005 16:15:39 +0000 (+0000) Subject: 2005-01-18 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ee907e0a04fd062374ea23e64664040aed425c9;p=binutils-gdb.git 2005-01-18 Andrew Cagney * remote.c (remote_open_1): Use throw_exception. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 090b2bd1476..eaba387687b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2005-01-18 Andrew Cagney + + * remote.c (remote_open_1): Use throw_exception. + 2005-01-17 Michael Snyder * mips-linux-tdep.c: Whitespace tweaks. diff --git a/gdb/remote.c b/gdb/remote.c index a2e22a5bfa7..7f1aa49be3c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2257,14 +2257,12 @@ remote_open_1 (char *name, int from_tty, struct target_ops *target, all the ``target ....'' commands to share a common callback function. See cli-dump.c. */ ex = catch_exception (uiout, remote_start_remote, NULL, RETURN_MASK_ALL); - exception_fprintf (gdb_stderr, ex, "Couldn't establish connection to remote" - " target\n"); if (ex.reason < 0) { pop_target (); if (async_p) wait_forever_enabled_p = 1; - throw_reason (ex.reason); + throw_exception (ex); } if (async_p)