diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a02f50b3324..18495bf7658 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : Add + argument. + * target.c (target_insn_history_range): Add argument. + * record-btrace.c (record_btrace_insn_history_range): Add 'self' + argument. + (record_btrace_insn_history_from): Update. + 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 2e130df4213..b022d597098 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -398,7 +398,8 @@ record_btrace_insn_history (struct target_ops *self, int size, int flags) /* The to_insn_history_range method of target record-btrace. */ static void -record_btrace_insn_history_range (ULONGEST from, ULONGEST to, int flags) +record_btrace_insn_history_range (struct target_ops *self, + ULONGEST from, ULONGEST to, int flags) { struct btrace_thread_info *btinfo; struct btrace_insn_history *history; @@ -478,7 +479,7 @@ record_btrace_insn_history_from (struct target_ops *self, end = ULONGEST_MAX; } - record_btrace_insn_history_range (begin, end, flags); + record_btrace_insn_history_range (self, begin, end, flags); } /* Print the instruction number range for a function call history line. */ diff --git a/gdb/target.c b/gdb/target.c index 6727134618a..b27098c7114 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4447,7 +4447,7 @@ target_insn_history_range (ULONGEST begin, ULONGEST end, int flags) for (t = current_target.beneath; t != NULL; t = t->beneath) if (t->to_insn_history_range != NULL) { - t->to_insn_history_range (begin, end, flags); + t->to_insn_history_range (t, begin, end, flags); return; } diff --git a/gdb/target.h b/gdb/target.h index f562a846b84..d1be4730dcb 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -965,7 +965,8 @@ struct target_ops /* Disassemble a section of the recorded execution trace from instruction BEGIN (inclusive) to instruction END (inclusive). */ - void (*to_insn_history_range) (ULONGEST begin, ULONGEST end, int flags); + void (*to_insn_history_range) (struct target_ops *, + ULONGEST begin, ULONGEST end, int flags); /* Print a function trace of the recorded execution trace. If SIZE < 0, print abs (SIZE) preceding functions; otherwise, print SIZE