summaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-15 05:54:02 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-15 05:54:02 +0000
commit9bbbb8a7e30147a00f868577426ca9f2bf4295fb (patch)
tree0d4d770c0032b2747df76ce7b4e296b71e4a22ff /gdb/infcmd.c
parent74517aea930fd91b2e66ffa6d0581e068a31d3cb (diff)
downloadgdb-9bbbb8a7e30147a00f868577426ca9f2bf4295fb.tar.gz
Cleanup delete_breakpoint cleanups.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 162b824a530..19f52602696 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1194,9 +1194,9 @@ finish_command (arg, from_tty)
breakpoint = set_momentary_breakpoint (sal, frame, bp_finish);
if (!event_loop_p || !target_can_async_p ())
- old_chain = make_cleanup ((make_cleanup_func) delete_breakpoint, breakpoint);
+ old_chain = make_cleanup_delete_breakpoint (breakpoint);
else
- old_chain = make_exec_cleanup ((make_cleanup_func) delete_breakpoint, breakpoint);
+ old_chain = make_exec_cleanup_delete_breakpoint (breakpoint);
/* Find the function we will return from. */