From: Jan Kratochvil Date: Sun, 5 May 2013 16:56:07 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc90b24d1b82b30fa0d29f35131d0156f7789dc3;p=binutils-gdb.git gdb/ * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 75b205c9f95..0bf36998fe2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-05-05 Jan Kratochvil + + * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP. + 2013-05-05 Jan Kratochvil * event-top.c (display_gdb_prompt): Call missing do_cleanups. 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; }