diff options
Diffstat (limited to 'gdb/cleanups.c')
-rw-r--r-- | gdb/cleanups.c | 1 |
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; } |