* cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
This commit is contained in:
Jan Kratochvil 2013-05-05 16:56:07 +00:00
parent faab992242
commit dc90b24d1b
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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;
}