This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/4] Remove deprecated_throw_reason from mips_error.
- From: "Andrew Burgess" <aburgess at broadcom dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 30 Jul 2013 17:11:16 +0100
- Subject: [PATCH 2/4] Remove deprecated_throw_reason from mips_error.
- References: <51F7E51E dot 3070807 at broadcom dot com>
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