aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:32:05 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:44 -0700
commit973fc2275208a4bfd7dddaa825e0b08b2100546e (patch)
treee8eb09467ccb0e7150dd23f8a3da3b61e17311f8 /gdb/target.c
parenta863b201d73bc238cbcfdbb11eac0a9ba2489a55 (diff)
downloadgdb-973fc2275208a4bfd7dddaa825e0b08b2100546e.zip
gdb-973fc2275208a4bfd7dddaa825e0b08b2100546e.tar.gz
gdb-973fc2275208a4bfd7dddaa825e0b08b2100546e.tar.bz2
Add target_ops argument to to_remove_fork_catchpoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add argument. (target_remove_fork_catchpoint): Add argument. * target.c (debug_to_remove_fork_catchpoint): Add argument. (update_current_target): Update. * linux-nat.c (linux_child_remove_fork_catchpoint): 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 a0c7214..c833645 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -795,7 +795,7 @@ update_current_target (void)
(int (*) (struct target_ops *, int))
return_one);
de_fault (to_remove_fork_catchpoint,
- (int (*) (int))
+ (int (*) (struct target_ops *, int))
return_one);
de_fault (to_insert_vfork_catchpoint,
(int (*) (int))
@@ -4879,11 +4879,11 @@ debug_to_insert_fork_catchpoint (struct target_ops *self, int pid)
}
static int
-debug_to_remove_fork_catchpoint (int pid)
+debug_to_remove_fork_catchpoint (struct target_ops *self, int pid)
{
int retval;
- retval = debug_target.to_remove_fork_catchpoint (pid);
+ retval = debug_target.to_remove_fork_catchpoint (&debug_target, pid);
fprintf_unfiltered (gdb_stdlog, "target_remove_fork_catchpoint (%d) = %d\n",
pid, retval);