aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/cleanups.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 75b205c..0bf3699 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
+
+2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
* event-top.c (display_gdb_prompt): Call missing do_cleanups.
* infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
* symfile.c (symfile_bfd_open): New variable back_to. Do not leave
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;
}