Add target_ops argument to to_call_history
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_call_history>: Add argument. * target.c (target_call_history): Add argument. * record-btrace.c (record_btrace_call_history): Add 'self' argument.
This commit is contained in:
parent
4e99c6b708
commit
5df2fcba0d
|
@ -1,3 +1,10 @@
|
||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_call_history>: Add argument.
|
||||||
|
* target.c (target_call_history): Add argument.
|
||||||
|
* record-btrace.c (record_btrace_call_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_insn_history_range>: Add
|
* target.h (struct target_ops) <to_insn_history_range>: Add
|
||||||
|
|
|
@ -617,7 +617,7 @@ btrace_call_history (struct ui_out *uiout,
|
||||||
/* The to_call_history method of target record-btrace. */
|
/* The to_call_history method of target record-btrace. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
record_btrace_call_history (int size, int flags)
|
record_btrace_call_history (struct target_ops *self, int size, int flags)
|
||||||
{
|
{
|
||||||
struct btrace_thread_info *btinfo;
|
struct btrace_thread_info *btinfo;
|
||||||
struct btrace_call_history *history;
|
struct btrace_call_history *history;
|
||||||
|
|
|
@ -4464,7 +4464,7 @@ target_call_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_call_history != NULL)
|
if (t->to_call_history != NULL)
|
||||||
{
|
{
|
||||||
t->to_call_history (size, flags);
|
t->to_call_history (t, size, flags);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -971,7 +971,7 @@ struct target_ops
|
||||||
/* Print a function trace of the recorded execution trace.
|
/* Print a function trace of the recorded execution trace.
|
||||||
If SIZE < 0, print abs (SIZE) preceding functions; otherwise, print SIZE
|
If SIZE < 0, print abs (SIZE) preceding functions; otherwise, print SIZE
|
||||||
succeeding functions. */
|
succeeding functions. */
|
||||||
void (*to_call_history) (int size, int flags);
|
void (*to_call_history) (struct target_ops *, int size, int flags);
|
||||||
|
|
||||||
/* Print a function trace of the recorded execution trace starting
|
/* Print a function trace of the recorded execution trace starting
|
||||||
at function FROM.
|
at function FROM.
|
||||||
|
|
Loading…
Reference in New Issue