aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:32:17 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:45 -0700
commit3ecc7da0cbf59dd2d731f14917d9c71fb8a58676 (patch)
tree3c543726a159a8fbb5e17d32a4173d8aa130f2db /gdb
parent973fc2275208a4bfd7dddaa825e0b08b2100546e (diff)
downloadgdb-3ecc7da0cbf59dd2d731f14917d9c71fb8a58676.zip
gdb-3ecc7da0cbf59dd2d731f14917d9c71fb8a58676.tar.gz
gdb-3ecc7da0cbf59dd2d731f14917d9c71fb8a58676.tar.bz2
Add target_ops argument to to_insert_vfork_catchpoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add argument. (target_insert_vfork_catchpoint): Add argument. * target.c (debug_to_insert_vfork_catchpoint): Add argument. (update_current_target): Update. * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self' argument.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/linux-nat.c2
-rw-r--r--gdb/target.c6
-rw-r--r--gdb/target.h4
4 files changed, 16 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index df51aab..b0fc6b1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,15 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
+ argument.
+ (target_insert_vfork_catchpoint): Add argument.
+ * target.c (debug_to_insert_vfork_catchpoint): Add argument.
+ (update_current_target): Update.
+ * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
+ argument.
+
+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.
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index d4f6bf4..e5144a7 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -708,7 +708,7 @@ linux_child_remove_fork_catchpoint (struct target_ops *self, int pid)
}
static int
-linux_child_insert_vfork_catchpoint (int pid)
+linux_child_insert_vfork_catchpoint (struct target_ops *self, int pid)
{
return !linux_supports_tracefork ();
}
diff --git a/gdb/target.c b/gdb/target.c
index c833645..0726f27 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -798,7 +798,7 @@ update_current_target (void)
(int (*) (struct target_ops *, int))
return_one);
de_fault (to_insert_vfork_catchpoint,
- (int (*) (int))
+ (int (*) (struct target_ops *, int))
return_one);
de_fault (to_remove_vfork_catchpoint,
(int (*) (int))
@@ -4892,11 +4892,11 @@ debug_to_remove_fork_catchpoint (struct target_ops *self, int pid)
}
static int
-debug_to_insert_vfork_catchpoint (int pid)
+debug_to_insert_vfork_catchpoint (struct target_ops *self, int pid)
{
int retval;
- retval = debug_target.to_insert_vfork_catchpoint (pid);
+ retval = debug_target.to_insert_vfork_catchpoint (&debug_target, pid);
fprintf_unfiltered (gdb_stdlog, "target_insert_vfork_catchpoint (%d) = %d\n",
pid, retval);
diff --git a/gdb/target.h b/gdb/target.h
index 54cc085..ff907b9 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -500,7 +500,7 @@ struct target_ops
void (*to_post_startup_inferior) (struct target_ops *, ptid_t);
int (*to_insert_fork_catchpoint) (struct target_ops *, int);
int (*to_remove_fork_catchpoint) (struct target_ops *, int);
- int (*to_insert_vfork_catchpoint) (int);
+ int (*to_insert_vfork_catchpoint) (struct target_ops *, int);
int (*to_remove_vfork_catchpoint) (int);
int (*to_follow_fork) (struct target_ops *, int, int);
int (*to_insert_exec_catchpoint) (int);
@@ -1312,7 +1312,7 @@ void target_create_inferior (char *exec_file, char *args,
(*current_target.to_remove_fork_catchpoint) (&current_target, pid)
#define target_insert_vfork_catchpoint(pid) \
- (*current_target.to_insert_vfork_catchpoint) (pid)
+ (*current_target.to_insert_vfork_catchpoint) (&current_target, pid)
#define target_remove_vfork_catchpoint(pid) \
(*current_target.to_remove_vfork_catchpoint) (pid)