mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
Add target_ops argument to to_stop_recording
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_stop_recording>: 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.
This commit is contained in:
parent
39c49f83b6
commit
c6cd7c02d1
@ -1,3 +1,11 @@
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_stop_recording>: 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 <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_read_btrace>: Add argument.
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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. */
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user