diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:34:48 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:56 -0700 |
commit | 1aac633be67ac452b4e8948362549f8760a19af0 (patch) | |
tree | 594094722119f3c1022f3c4b910a5aebdf397ff6 /gdb/target.h | |
parent | 1eab8a48bf928ab7337833c785ec1316edbdbc8a (diff) | |
download | binutils-1aac633be67ac452b4e8948362549f8760a19af0.zip binutils-1aac633be67ac452b4e8948362549f8760a19af0.tar.gz binutils-1aac633be67ac452b4e8948362549f8760a19af0.tar.bz2 |
Add target_ops argument to to_rcmd
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_rcmd>: Add argument.
(target_rcmd): Add argument.
* target.c (debug_to_rcmd): Add argument.
(update_current_target, do_monitor_command): Update.
* remote.c (remote_rcmd): Add 'self' argument.
* monitor.c (monitor_rcmd): Add 'self' argument.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index 3c2bf80..af8d834 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -525,7 +525,8 @@ struct target_ops char *(*to_extra_thread_info) (struct target_ops *, struct thread_info *); char *(*to_thread_name) (struct target_ops *, struct thread_info *); void (*to_stop) (struct target_ops *, ptid_t); - void (*to_rcmd) (char *command, struct ui_file *output); + void (*to_rcmd) (struct target_ops *, + char *command, struct ui_file *output); char *(*to_pid_to_exec_file) (int pid); void (*to_log_command) (const char *); struct target_section_table *(*to_get_section_table) (struct target_ops *); @@ -1434,7 +1435,7 @@ extern void target_stop (ptid_t ptid); placed in OUTBUF. */ #define target_rcmd(command, outbuf) \ - (*current_target.to_rcmd) (command, outbuf) + (*current_target.to_rcmd) (¤t_target, command, outbuf) /* Does the target include all of memory, or only part of it? This |