From: Tom Tromey Date: Wed, 18 Dec 2013 04:48:16 +0000 (-0700) Subject: Add target_ops argument to to_insn_history_from X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9abc3ff39e21529b0252a5257f75f157ea919603;p=binutils-gdb.git Add target_ops argument to to_insn_history_from 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. * target.c (target_insn_history_from): Add argument. * record-btrace.c (record_btrace_insn_history_from): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 50bbe83dfa2..a02f50b3324 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_insn_history_from): Add argument. + * record-btrace.c (record_btrace_insn_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 ae2befff2ac..2e130df4213 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -450,7 +450,8 @@ record_btrace_insn_history_range (ULONGEST from, ULONGEST to, int flags) /* The to_insn_history_from method of target record-btrace. */ static void -record_btrace_insn_history_from (ULONGEST from, int size, int flags) +record_btrace_insn_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 cdfc87d868b..6727134618a 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4430,7 +4430,7 @@ target_insn_history_from (ULONGEST from, int size, int flags) for (t = current_target.beneath; t != NULL; t = t->beneath) if (t->to_insn_history_from != NULL) { - t->to_insn_history_from (from, size, flags); + t->to_insn_history_from (t, from, size, flags); return; } diff --git a/gdb/target.h b/gdb/target.h index 43812226060..f562a846b84 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -960,7 +960,8 @@ struct target_ops FROM. If SIZE < 0, disassemble abs (SIZE) instructions before FROM; otherwise, disassemble SIZE instructions after FROM. */ - void (*to_insn_history_from) (ULONGEST from, int size, int flags); + void (*to_insn_history_from) (struct target_ops *, + ULONGEST from, int size, int flags); /* Disassemble a section of the recorded execution trace from instruction BEGIN (inclusive) to instruction END (inclusive). */