aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/common-exceptions.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-04-12 17:17:13 +0100
committerPedro Alves <palves@redhat.com>2016-04-12 17:17:13 +0100
commit2afc13ff80492278154c0f2156a9d32dd5ba675a (patch)
treeb11b25ea5ce1ba84fcf1d1d65fc08782ab953500 /gdb/common/common-exceptions.c
parentcfd0fbddb025d36228d02fe23e06039acc6104e4 (diff)
downloadbinutils-2afc13ff80492278154c0f2156a9d32dd5ba675a.zip
binutils-2afc13ff80492278154c0f2156a9d32dd5ba675a.tar.gz
binutils-2afc13ff80492278154c0f2156a9d32dd5ba675a.tar.bz2
Eliminate prepare_to_throw_exception
No longer necessary. gdb/ChangeLog: 2016-04-12 Pedro Alves <palves@redhat.com> * common/common-exceptions.c (exception_rethrow): Remove prepare_to_throw_exception call. * common/common-exceptions.h (prepare_to_throw_exception): Delete declaration. * exceptions.c (prepare_to_throw_exception): Delete. gdb/gdbserver/ChangeLog: 2016-04-12 Pedro Alves <palves@redhat.com> * utils.c (prepare_to_throw_exception): Delete.
Diffstat (limited to 'gdb/common/common-exceptions.c')
-rw-r--r--gdb/common/common-exceptions.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/common/common-exceptions.c b/gdb/common/common-exceptions.c
index 829ce12..5ea8188 100644
--- a/gdb/common/common-exceptions.c
+++ b/gdb/common/common-exceptions.c
@@ -248,7 +248,6 @@ exception_rethrow (void)
{
/* Run this scope's cleanups before re-throwing to the next
outermost scope. */
- prepare_to_throw_exception ();
do_cleanups (all_cleanups ());
throw;
}
@@ -268,8 +267,6 @@ gdb_exception_sliced_copy (struct gdb_exception *to, const struct gdb_exception
void
throw_exception (struct gdb_exception exception)
{
- prepare_to_throw_exception ();
-
do_cleanups (all_cleanups ());
#if GDB_XCPT == GDB_XCPT_SJMP