aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h
index d1bb68c..ceb2f04 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -528,7 +528,7 @@ struct target_ops
void (*to_rcmd) (struct target_ops *,
char *command, struct ui_file *output);
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 *);
enum strata to_stratum;
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) \
do \
if (current_target.to_log_command) \
- (*current_target.to_log_command) (p); \
+ (*current_target.to_log_command) (&current_target, \
+ p); \
while (0)