diff options
author | Tim Wiederhake <tim.wiederhake@intel.com> | 2016-12-13 11:24:56 +0100 |
---|---|---|
committer | Tim Wiederhake <tim.wiederhake@intel.com> | 2017-02-14 10:57:56 +0100 |
commit | b158a20f26f1d226088122e8c4fa5a23bb893a48 (patch) | |
tree | 8a7d017304027dce8495465ab478e9effb499d23 /gdb/target-debug.h | |
parent | 45b196c59065cd2c5b750b78a0329d42f6e924b1 (diff) | |
download | binutils-gdb-b158a20f26f1d226088122e8c4fa5a23bb893a48.tar.gz |
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
Diffstat (limited to 'gdb/target-debug.h')
-rw-r--r-- | gdb/target-debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h index 857ceceae65..6923608afdf 100644 --- a/gdb/target-debug.h +++ b/gdb/target-debug.h @@ -148,6 +148,8 @@ target_debug_do_print (host_address_to_string (X)) #define target_debug_print_enum_btrace_format(X) \ target_debug_do_print (plongest (X)) +#define target_debug_print_enum_record_method(X) \ + target_debug_do_print (plongest (X)) #define target_debug_print_const_struct_btrace_config_p(X) \ target_debug_do_print (host_address_to_string (X)) #define target_debug_print_const_struct_btrace_target_info_p(X) \ |