diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-05-14 20:39:12 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-05-14 20:39:12 +0000 |
commit | 5821aace701864d3aced34c974db27de52b0160c (patch) | |
tree | 7d9f1ab40b1abd18a2ebb81281a61e1133705dc3 /gdb/cleanups.c | |
parent | a1b8c4cc7e0d8ff5b4b7a80ed61be6f7e88e3eb9 (diff) | |
download | gdb-5821aace701864d3aced34c974db27de52b0160c.zip gdb-5821aace701864d3aced34c974db27de52b0160c.tar.gz gdb-5821aace701864d3aced34c974db27de52b0160c.tar.bz2 |
gdb/
* cleanups.c (restore_my_cleanups): Replace gdb_assert by
internal_warning.
Diffstat (limited to 'gdb/cleanups.c')
-rw-r--r-- | gdb/cleanups.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/cleanups.c b/gdb/cleanups.c index 02db9f5..898e526 100644 --- a/gdb/cleanups.c +++ b/gdb/cleanups.c @@ -261,7 +261,10 @@ save_final_cleanups (void) static void restore_my_cleanups (struct cleanup **pmy_chain, struct cleanup *chain) { - gdb_assert (*pmy_chain == SENTINEL_CLEANUP); + if (*pmy_chain != SENTINEL_CLEANUP) + internal_warning (__FILE__, __LINE__, + _("restore_my_cleanups has found a stale cleanup")); + *pmy_chain = chain; } |