Add target_ops argument to to_insn_history
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_insn_history>: Add argument. * target.c (target_insn_history): Add argument. * record-btrace.c (record_btrace_insn_history): Add 'self' argument.
This commit is contained in:
parent
606183ac2c
commit
7a6c5609f7
|
@ -1,3 +1,10 @@
|
||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_insn_history>: Add argument.
|
||||||
|
* target.c (target_insn_history): Add argument.
|
||||||
|
* record-btrace.c (record_btrace_insn_history): Add 'self'
|
||||||
|
argument.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_goto_record>: Add argument.
|
* target.h (struct target_ops) <to_goto_record>: Add argument.
|
||||||
|
|
|
@ -312,7 +312,7 @@ btrace_insn_history (struct ui_out *uiout,
|
||||||
/* The to_insn_history method of target record-btrace. */
|
/* The to_insn_history method of target record-btrace. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
record_btrace_insn_history (int size, int flags)
|
record_btrace_insn_history (struct target_ops *self, int size, int flags)
|
||||||
{
|
{
|
||||||
struct btrace_thread_info *btinfo;
|
struct btrace_thread_info *btinfo;
|
||||||
struct btrace_insn_history *history;
|
struct btrace_insn_history *history;
|
||||||
|
|
|
@ -4413,7 +4413,7 @@ target_insn_history (int size, int flags)
|
||||||
for (t = current_target.beneath; t != NULL; t = t->beneath)
|
for (t = current_target.beneath; t != NULL; t = t->beneath)
|
||||||
if (t->to_insn_history != NULL)
|
if (t->to_insn_history != NULL)
|
||||||
{
|
{
|
||||||
t->to_insn_history (size, flags);
|
t->to_insn_history (t, size, flags);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -954,7 +954,7 @@ struct target_ops
|
||||||
the current position.
|
the current position.
|
||||||
If SIZE < 0, disassemble abs (SIZE) preceding instructions; otherwise,
|
If SIZE < 0, disassemble abs (SIZE) preceding instructions; otherwise,
|
||||||
disassemble SIZE succeeding instructions. */
|
disassemble SIZE succeeding instructions. */
|
||||||
void (*to_insn_history) (int size, int flags);
|
void (*to_insn_history) (struct target_ops *, int size, int flags);
|
||||||
|
|
||||||
/* Disassemble SIZE instructions in the recorded execution trace around
|
/* Disassemble SIZE instructions in the recorded execution trace around
|
||||||
FROM.
|
FROM.
|
||||||
|
|
Loading…
Reference in New Issue