mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
Add target_ops argument to to_goto_record
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_goto_record>: Add argument. * target.c (target_goto_record): Add argument. * record-full.c (record_full_goto): Add 'self' argument. * record-btrace.c (record_btrace_goto): Add 'self' argument.
This commit is contained in:
parent
307a1b91cc
commit
606183ac2c
@ -1,3 +1,10 @@
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_goto_record>: Add argument.
|
||||
* target.c (target_goto_record): Add argument.
|
||||
* record-full.c (record_full_goto): Add 'self' argument.
|
||||
* record-btrace.c (record_btrace_goto): Add 'self' argument.
|
||||
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_goto_record_end>: Add argument.
|
||||
|
@ -1832,7 +1832,7 @@ record_btrace_goto_end (struct target_ops *ops)
|
||||
/* The to_goto_record method of target record-btrace. */
|
||||
|
||||
static void
|
||||
record_btrace_goto (ULONGEST insn)
|
||||
record_btrace_goto (struct target_ops *self, ULONGEST insn)
|
||||
{
|
||||
struct thread_info *tp;
|
||||
struct btrace_insn_iterator it;
|
||||
|
@ -1890,7 +1890,7 @@ record_full_goto_end (struct target_ops *self)
|
||||
/* The "to_goto_record" target method. */
|
||||
|
||||
static void
|
||||
record_full_goto (ULONGEST target_insn)
|
||||
record_full_goto (struct target_ops *self, ULONGEST target_insn)
|
||||
{
|
||||
struct record_full_entry *p = NULL;
|
||||
|
||||
|
@ -4396,7 +4396,7 @@ target_goto_record (ULONGEST insn)
|
||||
for (t = current_target.beneath; t != NULL; t = t->beneath)
|
||||
if (t->to_goto_record != NULL)
|
||||
{
|
||||
t->to_goto_record (insn);
|
||||
t->to_goto_record (t, insn);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -948,7 +948,7 @@ struct target_ops
|
||||
void (*to_goto_record_end) (struct target_ops *);
|
||||
|
||||
/* Go to a specific location in the recorded execution trace. */
|
||||
void (*to_goto_record) (ULONGEST insn);
|
||||
void (*to_goto_record) (struct target_ops *, ULONGEST insn);
|
||||
|
||||
/* Disassemble SIZE instructions in the recorded execution trace from
|
||||
the current position.
|
||||
|
Loading…
Reference in New Issue
Block a user