]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add target_ops argument to to_insn_history_range
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:48:29 +0000 (21:48 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:46:55 +0000 (07:46 -0700)
2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_insn_history_range>: 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.

gdb/ChangeLog
gdb/record-btrace.c
gdb/target.c
gdb/target.h

index a02f50b33248eda590fd281b52254f32aa762682..18495bf76582ca28209bc0ea8565db2dfbd31b31 100644 (file)
@@ -1,3 +1,12 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_insn_history_range>: 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  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_insn_history_from>: Add
index 2e130df42137a14ea7789a4abfdb114a291c4156..b022d597098ce19dcac4791330696418488dc44e 100644 (file)
@@ -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.  */
index 6727134618a317d2b8a1613743c26bf792504528..b27098c7114017cfef0e03c654245a95ef9cd84f 100644 (file)
@@ -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;
       }
 
index f562a846b8402d3b16dcffe40d83d15bc9909b47..d1be4730dcbe84b4bd7cee2fbf2f1d638c17f6c7 100644 (file)
@@ -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