aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-05-03 17:13:04 -0600
committerTom Tromey <tom@tromey.com>2017-09-29 21:12:10 -0600
commita9bc57b97840a874ad2802e29a44fbf557668808 (patch)
treec451edf69a05fe9cc51d876b9be12353cc16bd78 /gdb/target.h
parent9754d8c4c48209eaefb044d03dc25f14dca8a263 (diff)
downloadgdb-a9bc57b97840a874ad2802e29a44fbf557668808.zip
gdb-a9bc57b97840a874ad2802e29a44fbf557668808.tar.gz
gdb-a9bc57b97840a874ad2802e29a44fbf557668808.tar.bz2
Remove make_cleanup_defer_target_commit_resume
This removes make_cleanup_defer_target_commit_resume in favor of using scoped_restore. gdb/ChangeLog 2017-09-29 Tom Tromey <tom@tromey.com> * target.h (make_scoped_defer_target_commit_resume): Update. * target.c (make_scoped_defer_target_commit_resume): Rename from make_cleanup_defer_target_commit_resume. Return a scoped_restore. * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.h b/gdb/target.h
index d5a5312..87482dc 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1376,10 +1376,10 @@ extern void target_resume (ptid_t ptid, int step, enum gdb_signal signal);
coalesce multiple resumption requests in a single vCont packet. */
extern void target_commit_resume ();
-/* Setup to defer target_commit_resume calls, and return a cleanup
- that reactivates target_commit_resume, if it was previously
+/* Setup to defer target_commit_resume calls, and reactivate
+ target_commit_resume on destruction, if it was previously
active. */
-struct cleanup *make_cleanup_defer_target_commit_resume ();
+extern scoped_restore_tmpl<int> make_scoped_defer_target_commit_resume ();
/* For target_read_memory see target/target.h. */