mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-11 02:38:51 +08:00
Add target_ops argument to to_log_command
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_log_command>: Add argument. (target_log_command): Add argument. * serial.h (serial_log_command): Add 'self' argument. * serial.c (serial_log_command): Add 'self' argument.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_log_command>: Add argument.
|
||||||
|
(target_log_command): Add argument.
|
||||||
|
* serial.h (serial_log_command): Add 'self' argument.
|
||||||
|
* serial.c (serial_log_command): Add 'self' argument.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
|
* windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
|
||||||
|
@ -130,7 +130,7 @@ serial_logchar (struct ui_file *stream, int ch_type, int ch, int timeout)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
serial_log_command (const char *cmd)
|
serial_log_command (struct target_ops *self, const char *cmd)
|
||||||
{
|
{
|
||||||
if (!serial_logfp)
|
if (!serial_logfp)
|
||||||
return;
|
return;
|
||||||
|
@ -304,7 +304,7 @@ extern void serial_add_interface (const struct serial_ops * optable);
|
|||||||
|
|
||||||
/* File in which to record the remote debugging session. */
|
/* File in which to record the remote debugging session. */
|
||||||
|
|
||||||
extern void serial_log_command (const char *);
|
extern void serial_log_command (struct target_ops *self, const char *);
|
||||||
|
|
||||||
#ifdef USE_WIN32API
|
#ifdef USE_WIN32API
|
||||||
|
|
||||||
|
@ -528,7 +528,7 @@ struct target_ops
|
|||||||
void (*to_rcmd) (struct target_ops *,
|
void (*to_rcmd) (struct target_ops *,
|
||||||
char *command, struct ui_file *output);
|
char *command, struct ui_file *output);
|
||||||
char *(*to_pid_to_exec_file) (struct target_ops *, int pid);
|
char *(*to_pid_to_exec_file) (struct target_ops *, int pid);
|
||||||
void (*to_log_command) (const char *);
|
void (*to_log_command) (struct target_ops *, const char *);
|
||||||
struct target_section_table *(*to_get_section_table) (struct target_ops *);
|
struct target_section_table *(*to_get_section_table) (struct target_ops *);
|
||||||
enum strata to_stratum;
|
enum strata to_stratum;
|
||||||
int (*to_has_all_memory) (struct target_ops *);
|
int (*to_has_all_memory) (struct target_ops *);
|
||||||
@ -1868,7 +1868,8 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
|||||||
#define target_log_command(p) \
|
#define target_log_command(p) \
|
||||||
do \
|
do \
|
||||||
if (current_target.to_log_command) \
|
if (current_target.to_log_command) \
|
||||||
(*current_target.to_log_command) (p); \
|
(*current_target.to_log_command) (¤t_target, \
|
||||||
|
p); \
|
||||||
while (0)
|
while (0)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user