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.
This commit is contained in:
Simon Marchi 2018-03-01 10:51:21 -05:00
parent 8305403a1f
commit 0cb7c7b0bb
7 changed files with 54 additions and 40 deletions

View file

@ -3809,7 +3809,7 @@ target_insn_history_range (ULONGEST begin, ULONGEST end,
/* See target.h. */
void
target_call_history (int size, int flags)
target_call_history (int size, record_print_flags flags)
{
current_target.to_call_history (&current_target, size, flags);
}
@ -3817,7 +3817,7 @@ target_call_history (int size, int flags)
/* See target.h. */
void
target_call_history_from (ULONGEST begin, int size, int flags)
target_call_history_from (ULONGEST begin, int size, record_print_flags flags)
{
current_target.to_call_history_from (&current_target, begin, size, flags);
}
@ -3825,7 +3825,7 @@ target_call_history_from (ULONGEST begin, int size, int flags)
/* See target.h. */
void
target_call_history_range (ULONGEST begin, ULONGEST end, int flags)
target_call_history_range (ULONGEST begin, ULONGEST end, record_print_flags flags)
{
current_target.to_call_history_range (&current_target, begin, end, flags);
}