summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authoraburgess <aburgess>2013-07-31 15:44:52 +0000
committeraburgess <aburgess>2013-07-31 15:44:52 +0000
commitdd7ddfa96a2afe14e3144d3a869ef0d30c4311fb (patch)
tree23303da70f701058ba1e4d87373f2d4a9b474f59 /gdb
parent3e802ea78f3efbd04ef273ed75a4f24a9aeca23a (diff)
downloadgdb-dd7ddfa96a2afe14e3144d3a869ef0d30c4311fb.tar.gz
Remove deprecated_throw_reason.
http://sourceware.org/ml/gdb-patches/2013-07/msg00779.html gdb/ChangeLog * exceptions.c (deprecated_throw_reason): Remove. * exceptions.h (deprecated_throw_reason): Remove.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/exceptions.c22
-rw-r--r--gdb/exceptions.h5
3 files changed, 5 insertions, 27 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ee43344b7d1..ba2105b21ed 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2013-07-31 Andrew Burgess <aburgess@broadcom.com>
+ * exceptions.c (deprecated_throw_reason): Remove.
+ * exceptions.h (deprecated_throw_reason): Remove.
+
+2013-07-31 Andrew Burgess <aburgess@broadcom.com>
+
* remote-mips.c (mips_error): Replace use of
deprecated_throw_reason with throw_verror. Use the error message
passed to mips_error as the error message for throw_verror.
diff --git a/gdb/exceptions.c b/gdb/exceptions.c
index 416d81d1fd1..c4c1e5716fb 100644
--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -234,28 +234,6 @@ throw_exception (struct gdb_exception exception)
EXCEPTIONS_SIGLONGJMP (current_catcher->buf, exception.reason);
}
-void
-deprecated_throw_reason (enum return_reason reason)
-{
- struct gdb_exception exception;
-
- memset (&exception, 0, sizeof exception);
-
- exception.reason = reason;
- switch (reason)
- {
- case RETURN_QUIT:
- break;
- case RETURN_ERROR:
- exception.error = GENERIC_ERROR;
- break;
- default:
- internal_error (__FILE__, __LINE__, _("bad switch"));
- }
-
- throw_exception (exception);
-}
-
static void
print_flush (void)
{
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index 19eacd3ad67..bf418608449 100644
--- a/gdb/exceptions.h
+++ b/gdb/exceptions.h
@@ -186,11 +186,6 @@ extern void throw_vfatal (const char *fmt, va_list ap)
extern void throw_error (enum errors error, const char *fmt, ...)
ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 3);
-/* Instead of deprecated_throw_reason, code should use
- throw_exception. */
-extern void deprecated_throw_reason (enum return_reason reason)
- ATTRIBUTE_NORETURN;
-
/* Call FUNC(UIOUT, FUNC_ARGS) but wrapped within an exception
handler. If an exception (enum return_reason) is thrown using
throw_exception() than all cleanups installed since