diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2015-09-08 09:42:20 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2015-09-18 14:30:12 +0200 |
commit | 797094dddfbcc3ea1d0efc900185ba3857d30226 (patch) | |
tree | 0d3918d5022b93aed714dcdc4d61831926c39a6f /gdb/target.c | |
parent | 4d10e986f499f330963c4641fd91046c57c94bd8 (diff) | |
download | gdb-797094dddfbcc3ea1d0efc900185ba3857d30226.zip gdb-797094dddfbcc3ea1d0efc900185ba3857d30226.tar.gz gdb-797094dddfbcc3ea1d0efc900185ba3857d30226.tar.bz2 |
target: add to_record_stop_replaying target method
Add a new target method to_record_stop_replaying to stop replaying.
gdb/
* record-btrace.c (record_btrace_resume): Call
target_record_stop_replaying.
(record_btrace_stop_replaying_all): New.
(init_record_btrace_ops): Initialize to_record_stop_replaying.
* record-full.c (record_full_stop_replaying): New.
(init_record_full_ops ): Initialize to_record_stop_replaying.
* target-delegates.c: Regenerated.
* target.c (target_record_stop_replaying): New.
* target.h (struct target_ops) <to_record_stop_replaying>: New.
(target_record_stop_replaying): New.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c index 34d57ea..f73067c 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3664,6 +3664,14 @@ target_record_is_replaying (ptid_t ptid) /* See target.h. */ void +target_record_stop_replaying (void) +{ + current_target.to_record_stop_replaying (¤t_target); +} + +/* See target.h. */ + +void target_goto_record_begin (void) { current_target.to_goto_record_begin (¤t_target); |