aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-06-14 16:01:24 -0700
committerTom Tromey <tom@tromey.com>2018-09-17 00:42:18 -0600
commitc7c4d3fa80d2fef74fd4bd6b1e22c0399b19455f (patch)
treed42df5d986adb8a733883a1f1f66cbb159adf1b3 /gdb/infrun.c
parentee841dd8fee73c355587533027aecc8983bd5478 (diff)
downloadfsf-binutils-gdb-c7c4d3fa80d2fef74fd4bd6b1e22c0399b19455f.zip
fsf-binutils-gdb-c7c4d3fa80d2fef74fd4bd6b1e22c0399b19455f.tar.gz
fsf-binutils-gdb-c7c4d3fa80d2fef74fd4bd6b1e22c0399b19455f.tar.bz2
Remove two infrun cleanups
This removes a couple of cleanups from infrun by introducing a couple of unique_ptr specializations. gdb/ChangeLog 2018-09-17 Tom Tromey <tom@tromey.com> * inferior.h (struct infcall_suspend_state_deleter): New. (infcall_suspend_state_up): New typedef. (struct infcall_control_state_deleter): New. (infcall_control_state_up): New typedef. (make_cleanup_restore_infcall_suspend_state) (make_cleanup_restore_infcall_control_state): Don't declare. * infcall.c (call_function_by_hand_dummy): Update. * infrun.c (do_restore_infcall_suspend_state_cleanup) (make_cleanup_restore_infcall_suspend_state): Remove. (do_restore_infcall_control_state_cleanup) (make_cleanup_restore_infcall_control_state): Remove.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 0df539a..4828720 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -8893,19 +8893,6 @@ restore_infcall_suspend_state (struct infcall_suspend_state *inf_state)
discard_infcall_suspend_state (inf_state);
}
-static void
-do_restore_infcall_suspend_state_cleanup (void *state)
-{
- restore_infcall_suspend_state ((struct infcall_suspend_state *) state);
-}
-
-struct cleanup *
-make_cleanup_restore_infcall_suspend_state
- (struct infcall_suspend_state *inf_state)
-{
- return make_cleanup (do_restore_infcall_suspend_state_cleanup, inf_state);
-}
-
void
discard_infcall_suspend_state (struct infcall_suspend_state *inf_state)
{
@@ -9030,19 +9017,6 @@ restore_infcall_control_state (struct infcall_control_state *inf_status)
delete inf_status;
}
-static void
-do_restore_infcall_control_state_cleanup (void *sts)
-{
- restore_infcall_control_state ((struct infcall_control_state *) sts);
-}
-
-struct cleanup *
-make_cleanup_restore_infcall_control_state
- (struct infcall_control_state *inf_status)
-{
- return make_cleanup (do_restore_infcall_control_state_cleanup, inf_status);
-}
-
void
discard_infcall_control_state (struct infcall_control_state *inf_status)
{