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/record.h | |
parent | Add record_start and record_stop functions. (diff) | |
download | binutils-gdb-b158a20f26f1d226088122e8c4fa5a23bb893a48.tar.gz binutils-gdb-b158a20f26f1d226088122e8c4fa5a23bb893a48.tar.bz2 binutils-gdb-b158a20f26f1d226088122e8c4fa5a23bb893a48.zip |
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/record.h')
-rw-r--r-- | gdb/record.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/record.h b/gdb/record.h index cff4506903c..a54a08fb9cb 100644 --- a/gdb/record.h +++ b/gdb/record.h @@ -37,6 +37,19 @@ extern struct cmd_list_element *info_record_cmdlist; extern const struct frame_unwind record_btrace_frame_unwind; extern const struct frame_unwind record_btrace_tailcall_frame_unwind; +/* A list of different recording methods. */ +enum record_method +{ + /* No or unknown record method. */ + RECORD_METHOD_NONE, + + /* Record method "full". */ + RECORD_METHOD_FULL, + + /* Record method "btrace". */ + RECORD_METHOD_BTRACE +}; + /* A list of flags specifying what record target methods should print. */ enum record_print_flag { |