mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
Add target_ops argument to to_call_history_from
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_call_history_from>: Add argument. * target.c (target_call_history_from): Add argument. * record-btrace.c (record_btrace_call_history_from): Add 'self' argument.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_call_history_from>: Add
|
||||||
|
argument.
|
||||||
|
* target.c (target_call_history_from): Add argument.
|
||||||
|
* record-btrace.c (record_btrace_call_history_from): 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_call_history>: Add argument.
|
* target.h (struct target_ops) <to_call_history>: Add argument.
|
||||||
|
@ -758,7 +758,8 @@ record_btrace_call_history_range (ULONGEST from, ULONGEST to, int flags)
|
|||||||
/* The to_call_history_from method of target record-btrace. */
|
/* The to_call_history_from method of target record-btrace. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
record_btrace_call_history_from (ULONGEST from, int size, int flags)
|
record_btrace_call_history_from (struct target_ops *self,
|
||||||
|
ULONGEST from, int size, int flags)
|
||||||
{
|
{
|
||||||
ULONGEST begin, end, context;
|
ULONGEST begin, end, context;
|
||||||
|
|
||||||
|
@ -4481,7 +4481,7 @@ target_call_history_from (ULONGEST begin, 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_from != NULL)
|
if (t->to_call_history_from != NULL)
|
||||||
{
|
{
|
||||||
t->to_call_history_from (begin, size, flags);
|
t->to_call_history_from (t, begin, size, flags);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -977,7 +977,8 @@ struct target_ops
|
|||||||
at function FROM.
|
at function FROM.
|
||||||
If SIZE < 0, print abs (SIZE) functions before FROM; otherwise, print
|
If SIZE < 0, print abs (SIZE) functions before FROM; otherwise, print
|
||||||
SIZE functions after FROM. */
|
SIZE functions after FROM. */
|
||||||
void (*to_call_history_from) (ULONGEST begin, int size, int flags);
|
void (*to_call_history_from) (struct target_ops *,
|
||||||
|
ULONGEST begin, int size, int flags);
|
||||||
|
|
||||||
/* Print a function trace of an execution trace section from function BEGIN
|
/* Print a function trace of an execution trace section from function BEGIN
|
||||||
(inclusive) to function END (inclusive). */
|
(inclusive) to function END (inclusive). */
|
||||||
|
Reference in New Issue
Block a user