Add target_ops argument to to_call_history
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:48:41 +0000 (21:48 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:46:56 +0000 (07:46 -0700)
2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_call_history>: Add argument.
* target.c (target_call_history): Add argument.
* record-btrace.c (record_btrace_call_history): Add 'self'
argument.

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

index 18495bf76582ca28209bc0ea8565db2dfbd31b31..0c9946f2a76847eed0134bcc2d15d4b173826ec6 100644 (file)
@@ -1,3 +1,10 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_call_history>: Add argument.
+       * target.c (target_call_history): Add argument.
+       * record-btrace.c (record_btrace_call_history): Add 'self'
+       argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_insn_history_range>: Add
index b022d597098ce19dcac4791330696418488dc44e..7af9c89606e226ea7e765d1e46c53cd094234b23 100644 (file)
@@ -617,7 +617,7 @@ btrace_call_history (struct ui_out *uiout,
 /* The to_call_history method of target record-btrace.  */
 
 static void
-record_btrace_call_history (int size, int flags)
+record_btrace_call_history (struct target_ops *self, int size, int flags)
 {
   struct btrace_thread_info *btinfo;
   struct btrace_call_history *history;
index b27098c7114017cfef0e03c654245a95ef9cd84f..874308304ef2a6d5a191daba283da96f810354f6 100644 (file)
@@ -4464,7 +4464,7 @@ target_call_history (int size, int flags)
   for (t = current_target.beneath; t != NULL; t = t->beneath)
     if (t->to_call_history != NULL)
       {
-       t->to_call_history (size, flags);
+       t->to_call_history (t, size, flags);
        return;
       }
 
index d1be4730dcbe84b4bd7cee2fbf2f1d638c17f6c7..27f79aa8f11d2ffbc25497fe881c67fa794a91e9 100644 (file)
@@ -971,7 +971,7 @@ struct target_ops
     /* Print a function trace of the recorded execution trace.
        If SIZE < 0, print abs (SIZE) preceding functions; otherwise, print SIZE
        succeeding functions.  */
-    void (*to_call_history) (int size, int flags);
+    void (*to_call_history) (struct target_ops *, int size, int flags);
 
     /* Print a function trace of the recorded execution trace starting
        at function FROM.