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.
This commit is contained in:
parent
13f78033fc
commit
16f92dd4d4
3 changed files with 5 additions and 27 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2013-07-31 Andrew Burgess <aburgess@broadcom.com>
|
||||||
|
|
||||||
* remote-mips.c (mips_error): Replace use of
|
* remote-mips.c (mips_error): Replace use of
|
||||||
|
|
|
@ -234,28 +234,6 @@ throw_exception (struct gdb_exception exception)
|
||||||
EXCEPTIONS_SIGLONGJMP (current_catcher->buf, exception.reason);
|
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
|
static void
|
||||||
print_flush (void)
|
print_flush (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -186,11 +186,6 @@ extern void throw_vfatal (const char *fmt, va_list ap)
|
||||||
extern void throw_error (enum errors error, const char *fmt, ...)
|
extern void throw_error (enum errors error, const char *fmt, ...)
|
||||||
ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 3);
|
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
|
/* Call FUNC(UIOUT, FUNC_ARGS) but wrapped within an exception
|
||||||
handler. If an exception (enum return_reason) is thrown using
|
handler. If an exception (enum return_reason) is thrown using
|
||||||
throw_exception() than all cleanups installed since
|
throw_exception() than all cleanups installed since
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue