Add target_ops argument to to_info_record
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_info_record>: Add argument. * target.c (target_info_record): Add argument. * record.c (info_record_command): Add argument. * record-full.c (record_full_info): Add 'self' argument. * record-btrace.c (record_btrace_info): Add 'self' argument.
This commit is contained in:
parent
c6cd7c02d1
commit
630d6a4ad3
6 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_info_record>: Add argument.
|
||||||
|
* target.c (target_info_record): Add argument.
|
||||||
|
* record.c (info_record_command): Add argument.
|
||||||
|
* record-full.c (record_full_info): Add 'self' argument.
|
||||||
|
* record-btrace.c (record_btrace_info): Add 'self' argument.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_stop_recording>: Add argument.
|
* target.h (struct target_ops) <to_stop_recording>: Add argument.
|
||||||
|
|
|
@ -228,7 +228,7 @@ record_btrace_close (struct target_ops *self)
|
||||||
/* The to_info_record method of target record-btrace. */
|
/* The to_info_record method of target record-btrace. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
record_btrace_info (void)
|
record_btrace_info (struct target_ops *self)
|
||||||
{
|
{
|
||||||
struct btrace_thread_info *btinfo;
|
struct btrace_thread_info *btinfo;
|
||||||
struct thread_info *tp;
|
struct thread_info *tp;
|
||||||
|
|
|
@ -1770,7 +1770,7 @@ record_full_execution_direction (struct target_ops *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
record_full_info (void)
|
record_full_info (struct target_ops *self)
|
||||||
{
|
{
|
||||||
struct record_full_entry *p;
|
struct record_full_entry *p;
|
||||||
|
|
||||||
|
|
|
@ -287,7 +287,7 @@ info_record_command (char *args, int from_tty)
|
||||||
|
|
||||||
printf_filtered (_("Active record target: %s\n"), t->to_shortname);
|
printf_filtered (_("Active record target: %s\n"), t->to_shortname);
|
||||||
if (t->to_info_record != NULL)
|
if (t->to_info_record != NULL)
|
||||||
t->to_info_record ();
|
t->to_info_record (t);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The "record save" command. */
|
/* The "record save" command. */
|
||||||
|
|
|
@ -4283,7 +4283,7 @@ target_info_record (void)
|
||||||
for (t = current_target.beneath; t != NULL; t = t->beneath)
|
for (t = current_target.beneath; t != NULL; t = t->beneath)
|
||||||
if (t->to_info_record != NULL)
|
if (t->to_info_record != NULL)
|
||||||
{
|
{
|
||||||
t->to_info_record ();
|
t->to_info_record (t);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -930,7 +930,7 @@ struct target_ops
|
||||||
void (*to_stop_recording) (struct target_ops *);
|
void (*to_stop_recording) (struct target_ops *);
|
||||||
|
|
||||||
/* Print information about the recording. */
|
/* Print information about the recording. */
|
||||||
void (*to_info_record) (void);
|
void (*to_info_record) (struct target_ops *);
|
||||||
|
|
||||||
/* Save the recorded execution trace into a file. */
|
/* Save the recorded execution trace into a file. */
|
||||||
void (*to_save_record) (const char *filename);
|
void (*to_save_record) (const char *filename);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue