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:
parent
8305403a1f
commit
0cb7c7b0bb
7 changed files with 54 additions and 40 deletions
|
@ -3961,20 +3961,20 @@ debug_insn_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2,
|
|||
}
|
||||
|
||||
static void
|
||||
delegate_call_history (struct target_ops *self, int arg1, int arg2)
|
||||
delegate_call_history (struct target_ops *self, int arg1, record_print_flags arg2)
|
||||
{
|
||||
self = self->beneath;
|
||||
self->to_call_history (self, arg1, arg2);
|
||||
}
|
||||
|
||||
static void
|
||||
tdefault_call_history (struct target_ops *self, int arg1, int arg2)
|
||||
tdefault_call_history (struct target_ops *self, int arg1, record_print_flags arg2)
|
||||
{
|
||||
tcomplain ();
|
||||
}
|
||||
|
||||
static void
|
||||
debug_call_history (struct target_ops *self, int arg1, int arg2)
|
||||
debug_call_history (struct target_ops *self, int arg1, record_print_flags arg2)
|
||||
{
|
||||
fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history (...)\n", debug_target.to_shortname);
|
||||
debug_target.to_call_history (&debug_target, arg1, arg2);
|
||||
|
@ -3983,25 +3983,25 @@ debug_call_history (struct target_ops *self, int arg1, int arg2)
|
|||
fputs_unfiltered (", ", gdb_stdlog);
|
||||
target_debug_print_int (arg1);
|
||||
fputs_unfiltered (", ", gdb_stdlog);
|
||||
target_debug_print_int (arg2);
|
||||
target_debug_print_record_print_flags (arg2);
|
||||
fputs_unfiltered (")\n", gdb_stdlog);
|
||||
}
|
||||
|
||||
static void
|
||||
delegate_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
|
||||
delegate_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, record_print_flags arg3)
|
||||
{
|
||||
self = self->beneath;
|
||||
self->to_call_history_from (self, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
static void
|
||||
tdefault_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
|
||||
tdefault_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, record_print_flags arg3)
|
||||
{
|
||||
tcomplain ();
|
||||
}
|
||||
|
||||
static void
|
||||
debug_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
|
||||
debug_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, record_print_flags arg3)
|
||||
{
|
||||
fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history_from (...)\n", debug_target.to_shortname);
|
||||
debug_target.to_call_history_from (&debug_target, arg1, arg2, arg3);
|
||||
|
@ -4012,25 +4012,25 @@ debug_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int a
|
|||
fputs_unfiltered (", ", gdb_stdlog);
|
||||
target_debug_print_int (arg2);
|
||||
fputs_unfiltered (", ", gdb_stdlog);
|
||||
target_debug_print_int (arg3);
|
||||
target_debug_print_record_print_flags (arg3);
|
||||
fputs_unfiltered (")\n", gdb_stdlog);
|
||||
}
|
||||
|
||||
static void
|
||||
delegate_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
|
||||
delegate_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, record_print_flags arg3)
|
||||
{
|
||||
self = self->beneath;
|
||||
self->to_call_history_range (self, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
static void
|
||||
tdefault_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
|
||||
tdefault_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, record_print_flags arg3)
|
||||
{
|
||||
tcomplain ();
|
||||
}
|
||||
|
||||
static void
|
||||
debug_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
|
||||
debug_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, record_print_flags arg3)
|
||||
{
|
||||
fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history_range (...)\n", debug_target.to_shortname);
|
||||
debug_target.to_call_history_range (&debug_target, arg1, arg2, arg3);
|
||||
|
@ -4041,7 +4041,7 @@ debug_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2,
|
|||
fputs_unfiltered (", ", gdb_stdlog);
|
||||
target_debug_print_ULONGEST (arg2);
|
||||
fputs_unfiltered (", ", gdb_stdlog);
|
||||
target_debug_print_int (arg3);
|
||||
target_debug_print_record_print_flags (arg3);
|
||||
fputs_unfiltered (")\n", gdb_stdlog);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue