From: Tom Tromey Date: Wed, 18 Dec 2013 04:47:39 +0000 (-0700) Subject: Add target_ops argument to to_goto_record_end X-Git-Tag: gdb-7.8-release~1191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=307a1b91cc39d8329e09b8d913a9a0391d7ac1ad;p=external%2Fbinutils.git Add target_ops argument to to_goto_record_end 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. * target.c (target_goto_record_end): Add argument. * record-full.c (record_full_goto_end): Add 'self' argument. * record-btrace.c (record_btrace_goto_end): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 852226a..7858ae4 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_goto_record_end): Add argument. + * record-full.c (record_full_goto_end): Add 'self' argument. + * record-btrace.c (record_btrace_goto_end): Add 'self' argument. + +2014-02-19 Tom Tromey + * target.h (struct target_ops) : Add argument. * target.c (target_goto_record_begin): Add argument. diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index bc42ae4..25dbe62 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -1818,7 +1818,7 @@ record_btrace_goto_begin (struct target_ops *self) /* The to_goto_record_end method of target record-btrace. */ static void -record_btrace_goto_end (void) +record_btrace_goto_end (struct target_ops *ops) { struct thread_info *tp; diff --git a/gdb/record-full.c b/gdb/record-full.c index 1be84e0..468d772 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -1874,7 +1874,7 @@ record_full_goto_begin (struct target_ops *self) /* The "to_goto_record_end" target method. */ static void -record_full_goto_end (void) +record_full_goto_end (struct target_ops *self) { struct record_full_entry *p = NULL; diff --git a/gdb/target.c b/gdb/target.c index ef02b8e..0838251 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4379,7 +4379,7 @@ target_goto_record_end (void) for (t = current_target.beneath; t != NULL; t = t->beneath) if (t->to_goto_record_end != NULL) { - t->to_goto_record_end (); + t->to_goto_record_end (t); return; } diff --git a/gdb/target.h b/gdb/target.h index b494868..99abfc4 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -945,7 +945,7 @@ struct target_ops void (*to_goto_record_begin) (struct target_ops *); /* Go to the end of the execution trace. */ - void (*to_goto_record_end) (void); + void (*to_goto_record_end) (struct target_ops *); /* Go to a specific location in the recorded execution trace. */ void (*to_goto_record) (ULONGEST insn);