From: Tom Tromey Date: Wed, 18 Dec 2013 04:48:04 +0000 (-0700) Subject: Add target_ops argument to to_insn_history X-Git-Tag: gdb-7.8-release~1189 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a6c5609f76c156a95e314da790b331eace4137a;p=platform%2Fupstream%2Fbinutils.git Add target_ops argument to to_insn_history 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. * target.c (target_insn_history): Add argument. * record-btrace.c (record_btrace_insn_history): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8efd299..50bbe83 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2014-02-19 Tom Tromey + * target.h (struct target_ops) : Add argument. + * target.c (target_insn_history): Add argument. + * record-btrace.c (record_btrace_insn_history): Add 'self' + argument. + +2014-02-19 Tom Tromey + * target.h (struct target_ops) : Add argument. * target.c (target_goto_record): Add argument. * record-full.c (record_full_goto): Add 'self' argument. diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 7e03556..ae2beff 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -312,7 +312,7 @@ btrace_insn_history (struct ui_out *uiout, /* The to_insn_history method of target record-btrace. */ static void -record_btrace_insn_history (int size, int flags) +record_btrace_insn_history (struct target_ops *self, int size, int flags) { struct btrace_thread_info *btinfo; struct btrace_insn_history *history; diff --git a/gdb/target.c b/gdb/target.c index ee5c872..cdfc87d 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4413,7 +4413,7 @@ target_insn_history (int size, int flags) for (t = current_target.beneath; t != NULL; t = t->beneath) if (t->to_insn_history != NULL) { - t->to_insn_history (size, flags); + t->to_insn_history (t, size, flags); return; } diff --git a/gdb/target.h b/gdb/target.h index 8f22c67..4381222 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -954,7 +954,7 @@ struct target_ops the current position. If SIZE < 0, disassemble abs (SIZE) preceding instructions; otherwise, disassemble SIZE succeeding instructions. */ - void (*to_insn_history) (int size, int flags); + void (*to_insn_history) (struct target_ops *, int size, int flags); /* Disassemble SIZE instructions in the recorded execution trace around FROM.