diff options
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 6dc3685..cb8db9b 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -404,6 +404,7 @@ struct target_ops int); struct exception_event_record *(*to_get_current_exception_event) (void); char *(*to_pid_to_exec_file) (int pid); + void (*to_log_command) (const char *); enum strata to_stratum; int to_has_all_memory; int to_has_memory; @@ -1130,6 +1131,14 @@ extern int target_stopped_data_address_p (struct target_ops *); extern const struct target_desc *target_read_description (struct target_ops *); +/* Command logging facility. */ + +#define target_log_command(p) \ + do \ + if (current_target.to_log_command) \ + (*current_target.to_log_command) (p); \ + while (0) + /* Routines for maintenance of the target structures... add_target: Add a target to the list of all possible targets. |