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:
Tom Tromey 2013-12-17 21:46:25 -07:00
parent 39c49f83b6
commit c6cd7c02d1
5 changed files with 12 additions and 4 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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. */

View File

@ -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;
}

View File

@ -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);