This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Delete a throw_reason call


FYI,

committed,
Andrew
2005-01-18  Andrew Cagney  <cagney@gnu.org>

	* remote.c (remote_open_1): Use throw_exception.

Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.161
diff -p -u -r1.161 remote.c
--- remote.c	14 Jan 2005 22:59:33 -0000	1.161
+++ remote.c	18 Jan 2005 16:14:12 -0000
@@ -2257,14 +2257,12 @@ remote_open_1 (char *name, int from_tty,
      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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]