aboutsummaryrefslogtreecommitdiff
path: root/gdb/cleanups.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-05-05 16:56:07 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-05-05 16:56:07 +0000
commitdc90b24d1b82b30fa0d29f35131d0156f7789dc3 (patch)
tree74a8f6abd284ef55b10952032d32bb7851c4c04e /gdb/cleanups.c
parentfaab992242207dfee20afc307aabb28e6e6bfe7f (diff)
downloadgdb-dc90b24d1b82b30fa0d29f35131d0156f7789dc3.zip
gdb-dc90b24d1b82b30fa0d29f35131d0156f7789dc3.tar.gz
gdb-dc90b24d1b82b30fa0d29f35131d0156f7789dc3.tar.bz2
gdb/
* cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
Diffstat (limited to 'gdb/cleanups.c')
-rw-r--r--gdb/cleanups.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/cleanups.c b/gdb/cleanups.c
index c403db7..02db9f5 100644
--- a/gdb/cleanups.c
+++ b/gdb/cleanups.c
@@ -261,6 +261,7 @@ save_final_cleanups (void)
static void
restore_my_cleanups (struct cleanup **pmy_chain, struct cleanup *chain)
{
+ gdb_assert (*pmy_chain == SENTINEL_CLEANUP);
*pmy_chain = chain;
}