Add method to query current recording method to target_ops.
authorTim Wiederhake <tim.wiederhake@intel.com>
Tue, 13 Dec 2016 10:24:56 +0000 (11:24 +0100)
committerTim Wiederhake <tim.wiederhake@intel.com>
Tue, 14 Feb 2017 09:57:56 +0000 (10:57 +0100)
commitb158a20f26f1d226088122e8c4fa5a23bb893a48
tree8a7d017304027dce8495465ab478e9effb499d23
parent45b196c59065cd2c5b750b78a0329d42f6e924b1
Add method to query current recording method to target_ops.

Signed-off-by: Tim Wiederhake <tim.wiederhake@intel.com>
gdb/ChangeLog

* record-btrace.c (record_btrace_record_method): New function.
(init_record_btrace_ops): Initialize to_record_method.
* record-full.c (record_full_record_method): New function.
(init_record_full_ops, init_record_full_core_ops): Add
record_full_record_method.
* record.h (enum record_method): New enum.
* target-debug.h (target_debug_print_enum_record_method: New define.
* target-delegates.c: Regenerate.
* target.c (target_record_method): New function.
* target.h: Include record.h.
(struct target_ops) <to_record_method>: New field.
(target_record_method): New export.

Change-Id: I05daa70e4e08a19901e848c731bb7d60cd87cc5a
gdb/record-btrace.c
gdb/record-full.c
gdb/record.h
gdb/target-debug.h
gdb/target-delegates.c
gdb/target.c
gdb/target.h