diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-05-05 16:56:07 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-05-05 16:56:07 +0000 |
commit | dc90b24d1b82b30fa0d29f35131d0156f7789dc3 (patch) | |
tree | 74a8f6abd284ef55b10952032d32bb7851c4c04e /gdb/cleanups.c | |
parent | faab992242207dfee20afc307aabb28e6e6bfe7f (diff) | |
download | gdb-dc90b24d1b82b30fa0d29f35131d0156f7789dc3.zip gdb-dc90b24d1b82b30fa0d29f35131d0156f7789dc3.tar.gz gdb-dc90b24d1b82b30fa0d29f35131d0156f7789dc3.tar.bz2 |
gdb/
* cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
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; } |