target: add to_record_will_replay target method
authorMarkus Metzger <markus.t.metzger@intel.com>
Thu, 17 Sep 2015 09:14:55 +0000 (11:14 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 18 Sep 2015 12:30:49 +0000 (14:30 +0200)
commit7ff27e9babb1564a9c0e213c4a42396aa420f8cc
treec68b4809cdeba57b7d27d35fc9390eaa52726c47
parent797094dddfbcc3ea1d0efc900185ba3857d30226
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>
gdb/ChangeLog
gdb/record-btrace.c
gdb/record-full.c
gdb/target-delegates.c
gdb/target.c
gdb/target.h