summaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-18 16:15:39 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-18 16:15:39 +0000
commitb1f32d53a5d57017a6081613fc92f23034587bdf (patch)
tree7872902050602de0476736b20adf931596206e57 /gdb/remote.c
parent582a277d36f1207cd244e483b83ddc1360fc87eb (diff)
downloadgdb-b1f32d53a5d57017a6081613fc92f23034587bdf.tar.gz
2005-01-18 Andrew Cagney <cagney@gnu.org>
* remote.c (remote_open_1): Use throw_exception.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 1 insertions, 3 deletions
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)