aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:28:08 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:29 -0700
commitf045800c90783c13d6f116d99ca429a9ef556055 (patch)
tree955b5d9888ad801099a207e3b7b50cba98c7b761 /gdb/target.c
parentde90e03d4c19cf5327b4eaea4ad8666a3a1bfad5 (diff)
downloadgdb-f045800c90783c13d6f116d99ca429a9ef556055.zip
gdb-f045800c90783c13d6f116d99ca429a9ef556055.tar.gz
gdb-f045800c90783c13d6f116d99ca429a9ef556055.tar.bz2
Add target_ops argument to to_post_attach
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_post_attach>: Add argument. (target_post_attach): Add argument. * target.c (debug_to_post_attach): Add argument. (update_current_target): Update. * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument. * nto-procfs.c (procfs_post_attach): Add 'self' argument. * linux-nat.c (linux_child_post_attach): Add 'self' argument. * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument. * inf-child.c (inf_child_post_attach): 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 e63725a..73531e1 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -721,7 +721,7 @@ update_current_target (void)
(void (*) (struct target_ops *))
target_ignore);
de_fault (to_post_attach,
- (void (*) (int))
+ (void (*) (struct target_ops *, int))
target_ignore);
de_fault (to_prepare_to_store,
(void (*) (struct target_ops *, struct regcache *))
@@ -3914,9 +3914,9 @@ target_stop (ptid_t ptid)
}
static void
-debug_to_post_attach (int pid)
+debug_to_post_attach (struct target_ops *self, int pid)
{
- debug_target.to_post_attach (pid);
+ debug_target.to_post_attach (&debug_target, pid);
fprintf_unfiltered (gdb_stdlog, "target_post_attach (%d)\n", pid);
}