mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-26 07:19:16 +08:00
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
This commit is contained in:
13
gdb/record.h
13
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user