mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 13:53:29 +08:00
gdb/
* cleanups.c (restore_my_cleanups): Replace gdb_assert by internal_warning.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* cleanups.c (restore_my_cleanups): Replace gdb_assert by
|
||||||
|
internal_warning.
|
||||||
|
|
||||||
2013-05-14 Tom Tromey <tromey@redhat.com>
|
2013-05-14 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* eval.c (parse_and_eval_long): Make 'exp' const.
|
* eval.c (parse_and_eval_long): Make 'exp' const.
|
||||||
|
@ -261,7 +261,10 @@ save_final_cleanups (void)
|
|||||||
static void
|
static void
|
||||||
restore_my_cleanups (struct cleanup **pmy_chain, struct cleanup *chain)
|
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;
|
*pmy_chain = chain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user