mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 11:01:35 +08:00
Purge (almost) make_cleanup_func.
This commit is contained in:
11
gdb/infcmd.c
11
gdb/infcmd.c
@ -454,6 +454,12 @@ nexti_command (count_string, from_tty)
|
||||
step_1 (1, 1, count_string);
|
||||
}
|
||||
|
||||
static void
|
||||
disable_longjmp_breakpoint_cleanup (void *ignore)
|
||||
{
|
||||
disable_longjmp_breakpoint ();
|
||||
}
|
||||
|
||||
static void
|
||||
step_1 (skip_subroutines, single_inst, count_string)
|
||||
int skip_subroutines;
|
||||
@ -489,10 +495,9 @@ step_1 (skip_subroutines, single_inst, count_string)
|
||||
{
|
||||
enable_longjmp_breakpoint ();
|
||||
if (!event_loop_p || !target_can_async_p ())
|
||||
cleanups = make_cleanup ((make_cleanup_func) disable_longjmp_breakpoint,
|
||||
0);
|
||||
cleanups = make_cleanup (disable_longjmp_breakpoint_cleanup, 0 /*ignore*/);
|
||||
else
|
||||
make_exec_cleanup ((make_cleanup_func) disable_longjmp_breakpoint, 0);
|
||||
make_exec_cleanup (disable_longjmp_breakpoint_cleanup, 0 /*ignore*/);
|
||||
}
|
||||
|
||||
/* In synchronous case, all is well, just use the regular for loop. */
|
||||
|
Reference in New Issue
Block a user