From dc90b24d1b82b30fa0d29f35131d0156f7789dc3 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 5 May 2013 16:56:07 +0000 Subject: [PATCH] gdb/ * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP. --- gdb/ChangeLog | 4 ++++ gdb/cleanups.c | 1 + 2 files changed, 5 insertions(+) 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; } -- 2.30.2