From: Tom Tromey Date: Wed, 18 Dec 2013 04:46:25 +0000 (-0700) Subject: Add target_ops argument to to_stop_recording X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6cd7c02d1b67aafe4c791e2828c58733c68c03d;p=binutils-gdb.git Add target_ops argument to to_stop_recording 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. * target.c (target_stop_recording): Add argument. * record.c (record_stop): Add argument. * record-btrace.c (record_btrace_stop_recording): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3480224dbe7..70f556cb0df 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : Add argument. + * target.c (target_stop_recording): Add argument. + * record.c (record_stop): Add argument. + * record-btrace.c (record_btrace_stop_recording): Add 'self' + argument. + 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 4e808e47151..b34b737e30d 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -195,7 +195,7 @@ record_btrace_open (char *args, int from_tty) /* The to_stop_recording method of target record-btrace. */ static void -record_btrace_stop_recording (void) +record_btrace_stop_recording (struct target_ops *self) { struct thread_info *tp; diff --git a/gdb/record.c b/gdb/record.c index 41e167fc2ae..d8e1098fd72 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -115,7 +115,7 @@ record_stop (struct target_ops *t) DEBUG ("stop %s", t->to_shortname); if (t->to_stop_recording != NULL) - t->to_stop_recording (); + t->to_stop_recording (t); } /* Unpush the record target. */ diff --git a/gdb/target.c b/gdb/target.c index 7d3d587ca20..e8c37f42011 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4266,7 +4266,7 @@ target_stop_recording (void) for (t = current_target.beneath; t != NULL; t = t->beneath) if (t->to_stop_recording != NULL) { - t->to_stop_recording (); + t->to_stop_recording (t); return; } diff --git a/gdb/target.h b/gdb/target.h index b9ff0351dea..7335dd9f260 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -927,7 +927,7 @@ struct target_ops enum btrace_read_type type); /* Stop trace recording. */ - void (*to_stop_recording) (void); + void (*to_stop_recording) (struct target_ops *); /* Print information about the recording. */ void (*to_info_record) (void);