diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-22 09:02:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-22 09:02:23 +0000 |
commit | 8bc03e33b431d1eb24d0bf62bd6de8541cc8a587 (patch) | |
tree | 9b21100bd147ba7660ed8beef02555b41563366a /gdb/infcmd.c | |
parent | d9d44fe4c56f9fbb4e2db06384fc6ec08aa4bfd9 (diff) | |
download | gdb-8bc03e33b431d1eb24d0bf62bd6de8541cc8a587.tar.gz |
Purge (almost) make_cleanup_func.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 19f52602696..5fdeada4b19 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -455,6 +455,12 @@ nexti_command (count_string, from_tty) } static void +disable_longjmp_breakpoint_cleanup (void *ignore) +{ + disable_longjmp_breakpoint (); +} + +static void step_1 (skip_subroutines, single_inst, count_string) int skip_subroutines; int single_inst; @@ -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. */ |