Add target_ops argument to to_insn_history_from

2014-02-19  Tom Tromey  <tromey@redhat.com>

	* target.h (struct target_ops) <to_insn_history_from>: Add
	argument.
	* target.c (target_insn_history_from): Add argument.
	* record-btrace.c (record_btrace_insn_history_from): Add 'self'
	argument.
This commit is contained in:
Tom Tromey 2013-12-17 21:48:16 -07:00
parent 7a6c5609f7
commit 9abc3ff39e
4 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_insn_history_from>: 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 <tromey@redhat.com>
* target.h (struct target_ops) <to_insn_history>: Add argument.

View file

@ -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;

View file

@ -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;
}

View file

@ -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). */