2005-01-18 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Tue, 18 Jan 2005 16:15:39 +0000 (16:15 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 18 Jan 2005 16:15:39 +0000 (16:15 +0000)
* remote.c (remote_open_1): Use throw_exception.

gdb/ChangeLog
gdb/remote.c

index 090b2bd1476af6077b29b4c49b27211e1b20b914..eaba387687b9390463262dd6074cefb51a2deb1b 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-18  Andrew Cagney  <cagney@gnu.org>
+
+       * remote.c (remote_open_1): Use throw_exception.
+
 2005-01-17  Michael Snyder  <msnyder@redhat.com>
 
        * mips-linux-tdep.c: Whitespace tweaks.
index a2e22a5bfa754de8368fa49fa780bc9bb1971f06..7f1aa49be3c7d5d8c11d89ea7f52931449a7e54e 100644 (file)
@@ -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)
This page took 0.029455 seconds and 4 git commands to generate.