diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:35:01 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:56 -0700 |
commit | 8dd27370eb43ed1a76883f04c9d93f83a1d195a0 (patch) | |
tree | 9ddd226c51069f98594fb0f431c4ab5092416e76 /gdb/target.h | |
parent | 1aac633be67ac452b4e8948362549f8760a19af0 (diff) | |
download | binutils-8dd27370eb43ed1a76883f04c9d93f83a1d195a0.zip binutils-8dd27370eb43ed1a76883f04c9d93f83a1d195a0.tar.gz binutils-8dd27370eb43ed1a76883f04c9d93f83a1d195a0.tar.bz2 |
Add target_ops argument to to_pid_to_exec_file
2014-02-19 Tom Tromey <tromey@redhat.com>
* windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
* target.h (struct target_ops) <to_pid_to_exec_file>: Add
argument.
(target_pid_to_exec_file): Add argument.
* target.c (debug_to_pid_to_exec_file): Add argument.
(update_current_target): Update.
* nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
* nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
* linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
(linux_handle_extended_wait): Update.
* inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
* fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
* fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
* darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index af8d834..d1bb68c 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -527,7 +527,7 @@ struct target_ops void (*to_stop) (struct target_ops *, ptid_t); void (*to_rcmd) (struct target_ops *, char *command, struct ui_file *output); - char *(*to_pid_to_exec_file) (int pid); + char *(*to_pid_to_exec_file) (struct target_ops *, int pid); void (*to_log_command) (const char *); struct target_section_table *(*to_get_section_table) (struct target_ops *); enum strata to_stratum; @@ -1545,7 +1545,7 @@ extern char *target_thread_name (struct thread_info *); it must persist. */ #define target_pid_to_exec_file(pid) \ - (current_target.to_pid_to_exec_file) (pid) + (current_target.to_pid_to_exec_file) (¤t_target, pid) /* See the to_thread_architecture description in struct target_ops. */ |