diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2015-09-17 11:14:55 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2015-09-18 14:30:49 +0200 |
commit | 7ff27e9babb1564a9c0e213c4a42396aa420f8cc (patch) | |
tree | c68b4809cdeba57b7d27d35fc9390eaa52726c47 /gdb/target.c | |
parent | 797094dddfbcc3ea1d0efc900185ba3857d30226 (diff) | |
download | gdb-7ff27e9babb1564a9c0e213c4a42396aa420f8cc.zip gdb-7ff27e9babb1564a9c0e213c4a42396aa420f8cc.tar.gz gdb-7ff27e9babb1564a9c0e213c4a42396aa420f8cc.tar.bz2 |
target: add to_record_will_replay target method
Add a new target method to_record_will_replay to query if there is a record
target that will replay at least one thread matching the argument PTID if it
were executed in the argument execution direction.
gdb/
* record-btrace.c ((record_btrace_will_replay): New.
(init_record_btrace_ops): Initialize to_record_will_replay.
* record-full.c ((record_full_will_replay): New.
(init_record_full_ops): Initialize to_record_will_replay.
* target-delegates.c: Regenerated.
* target.c (target_record_will_replay): New.
* target.h (struct target_ops) <to_record_will_replay>: New.
(target_record_will_replay): New.
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
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 f73067c..8df862b 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3663,6 +3663,14 @@ target_record_is_replaying (ptid_t ptid) /* See target.h. */ +int +target_record_will_replay (ptid_t ptid, int dir) +{ + return current_target.to_record_will_replay (¤t_target, ptid, dir); +} + +/* See target.h. */ + void target_record_stop_replaying (void) { |