From b158a20f26f1d226088122e8c4fa5a23bb893a48 Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Tue, 13 Dec 2016 11:24:56 +0100 Subject: Add method to query current recording method to target_ops. Signed-off-by: Tim Wiederhake 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) : New field. (target_record_method): New export. Change-Id: I05daa70e4e08a19901e848c731bb7d60cd87cc5a --- gdb/target-debug.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/target-debug.h') 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) \ -- cgit v1.2.1