diff options
author | 2018-03-01 10:51:21 -0500 | |
---|---|---|
committer | 2018-03-01 10:51:21 -0500 | |
commit | 0cb7c7b0bb79be910e261f3d30c58ace6b0d06d1 (patch) | |
tree | 34cf43f08a90d41090e6571ff58413706fed25d3 /gdb/target.h | |
parent | x86: Encode AVX256/AVX512 vpsub[bwdq] with VEX128/EVEX128 (diff) | |
download | binutils-gdb-0cb7c7b0bb79be910e261f3d30c58ace6b0d06d1.tar.gz binutils-gdb-0cb7c7b0bb79be910e261f3d30c58ace6b0d06d1.tar.bz2 binutils-gdb-0cb7c7b0bb79be910e261f3d30c58ace6b0d06d1.zip |
Propagate record_print_flags
These flags are returned as an int by get_call_history_modifiers, and
get cast back to record_print_flags in the btrace code. Instead, we can
make the arguments of that type from start to end.
gdb/ChangeLog:
* record.c (get_call_history_modifiers): Return a
record_print_flags.
(cmd_record_call_history): Adjust.
* record-btrace.c (record_btrace_call_history): Adjust.
(record_btrace_call_history_range): Adjust.
(record_btrace_call_history_from): Adjust.
* target-debug.h (target_debug_print_record_print_flags): New.
* target-delegates.c: Re-generate.
* target.c (target_call_history): Change flags type.
(target_call_history_from): Likewise.
(target_call_history_range): Likewise.
* target.h (struct target_ops) <target_call_history>: Likewise.
(target_call_history_from): Likewise.
(target_call_history_range): Likewise.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/target.h b/gdb/target.h index e8972ca54a1..de562139c74 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1217,7 +1217,7 @@ struct target_ops /* Print a function trace of the recorded execution trace. If SIZE < 0, print abs (SIZE) preceding functions; otherwise, print SIZE succeeding functions. */ - void (*to_call_history) (struct target_ops *, int size, int flags) + void (*to_call_history) (struct target_ops *, int size, record_print_flags flags) TARGET_DEFAULT_NORETURN (tcomplain ()); /* Print a function trace of the recorded execution trace starting @@ -1225,13 +1225,13 @@ struct target_ops If SIZE < 0, print abs (SIZE) functions before FROM; otherwise, print SIZE functions after FROM. */ void (*to_call_history_from) (struct target_ops *, - ULONGEST begin, int size, int flags) + ULONGEST begin, int size, record_print_flags flags) TARGET_DEFAULT_NORETURN (tcomplain ()); /* Print a function trace of an execution trace section from function BEGIN (inclusive) to function END (inclusive). */ void (*to_call_history_range) (struct target_ops *, - ULONGEST begin, ULONGEST end, int flags) + ULONGEST begin, ULONGEST end, record_print_flags flags) TARGET_DEFAULT_NORETURN (tcomplain ()); /* Nonzero if TARGET_OBJECT_LIBRARIES_SVR4 may be read with a @@ -2492,13 +2492,15 @@ extern void target_insn_history_range (ULONGEST begin, ULONGEST end, gdb_disassembly_flags flags); /* See to_call_history. */ -extern void target_call_history (int size, int flags); +extern void target_call_history (int size, record_print_flags flags); /* See to_call_history_from. */ -extern void target_call_history_from (ULONGEST begin, int size, int flags); +extern void target_call_history_from (ULONGEST begin, int size, + record_print_flags flags); /* See to_call_history_range. */ -extern void target_call_history_range (ULONGEST begin, ULONGEST end, int flags); +extern void target_call_history_range (ULONGEST begin, ULONGEST end, + record_print_flags flags); /* See to_prepare_to_generate_core. */ extern void target_prepare_to_generate_core (void); |