From ec0aea0490879ef1c44ba795ad97e492128ffb45 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:48:53 -0700 Subject: [PATCH] Add target_ops argument to to_call_history_from 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. * target.c (target_call_history_from): Add argument. * record-btrace.c (record_btrace_call_history_from): Add 'self' argument. --- gdb/ChangeLog | 8 ++++++++ gdb/record-btrace.c | 3 ++- gdb/target.c | 2 +- gdb/target.h | 3 ++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c9946f2a76..1dd83d7a60f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : 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 * target.h (struct target_ops) : Add argument. diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 7af9c89606e..fafe5e18125 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -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. */ 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; diff --git a/gdb/target.c b/gdb/target.c index 874308304ef..d2c4da8c953 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4481,7 +4481,7 @@ target_call_history_from (ULONGEST begin, int size, int flags) for (t = current_target.beneath; t != NULL; t = t->beneath) 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; } diff --git a/gdb/target.h b/gdb/target.h index 27f79aa8f11..de7412bd250 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -977,7 +977,8 @@ struct target_ops at function FROM. If SIZE < 0, print abs (SIZE) functions before FROM; otherwise, print 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 (inclusive) to function END (inclusive). */