summaryrefslogtreecommitdiff
path: root/gdb/cleanups.c
diff options
context:
space:
mode:
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 c403db7cc2d..02db9f5cdda 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;
}