This is the mail archive of the gdb-patches@sourceware.org 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]

[PATCH 2/4] Remove deprecated_throw_reason from mips_error.


Removes use of deprecated_throw_reason from mips_error.  The user will now
see the extra "Remote debugging terminated" error message but that doesn't
feel too bad to me, what do you think?

OK to apply?

Thanks,
Andrew

gdb/ChangeLog

2013-07-30  Andrew Burgess  <aburgess@broadcom.com>

	* remote-mips.c (mips_error): Replace use of deprecated_throw_reason
	with throw_error.

diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 1619622..791aa8a 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -510,7 +510,7 @@ mips_error (char *string,...)
   if (!ptid_equal (inferior_ptid, null_ptid))
     target_mourn_inferior ();
 
-  deprecated_throw_reason (RETURN_ERROR);
+  throw_error (GENERIC_ERROR, "Remote debugging terminated");
 }
 
 /* putc_readable - print a character, displaying non-printable chars in



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