aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:35:01 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:56 -0700
commit8dd27370eb43ed1a76883f04c9d93f83a1d195a0 (patch)
tree9ddd226c51069f98594fb0f431c4ab5092416e76 /gdb/target.c
parent1aac633be67ac452b4e8948362549f8760a19af0 (diff)
downloadfsf-binutils-gdb-8dd27370eb43ed1a76883f04c9d93f83a1d195a0.zip
fsf-binutils-gdb-8dd27370eb43ed1a76883f04c9d93f83a1d195a0.tar.gz
fsf-binutils-gdb-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.c')
-rw-r--r--gdb/target.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 3850494..7ffe2df 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -831,7 +831,7 @@ update_current_target (void)
(void (*) (struct target_ops *, char *, struct ui_file *))
tcomplain);
de_fault (to_pid_to_exec_file,
- (char *(*) (int))
+ (char *(*) (struct target_ops *, int))
return_null);
de_fault (to_thread_architecture,
default_thread_architecture);
@@ -5004,11 +5004,11 @@ debug_to_rcmd (struct target_ops *self, char *command,
}
static char *
-debug_to_pid_to_exec_file (int pid)
+debug_to_pid_to_exec_file (struct target_ops *self, int pid)
{
char *exec_file;
- exec_file = debug_target.to_pid_to_exec_file (pid);
+ exec_file = debug_target.to_pid_to_exec_file (&debug_target, pid);
fprintf_unfiltered (gdb_stdlog, "target_pid_to_exec_file (%d) = %s\n",
pid, exec_file);