aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-04-29 15:54:12 +0000
committerPedro Alves <palves@redhat.com>2011-04-29 15:54:12 +0000
commiteb73ad13537571163d9fb6818f0931d71dad141a (patch)
tree5d678ca9746e5d6181d3d4a853114c8240e04b23 /gdb/linux-nat.c
parentd65aec65d9e22f5232e414a4d8abef8f1279b090 (diff)
downloadgdb-eb73ad13537571163d9fb6818f0931d71dad141a.zip
gdb-eb73ad13537571163d9fb6818f0931d71dad141a.tar.gz
gdb-eb73ad13537571163d9fb6818f0931d71dad141a.tar.bz2
* linux-nat.c (linux_child_remove_fork_catchpoint)
(linux_child_remove_vfork_catchpoint) (linux_child_remove_exec_catchpoint): New functions. (linux_target_install_ops): Install them.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 08f49e4..9442088 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -944,18 +944,36 @@ linux_child_insert_fork_catchpoint (int pid)
}
static int
+linux_child_remove_fork_catchpoint (int pid)
+{
+ return 0;
+}
+
+static int
linux_child_insert_vfork_catchpoint (int pid)
{
return !linux_supports_tracefork (pid);
}
static int
+linux_child_remove_vfork_catchpoint (int pid)
+{
+ return 0;
+}
+
+static int
linux_child_insert_exec_catchpoint (int pid)
{
return !linux_supports_tracefork (pid);
}
static int
+linux_child_remove_exec_catchpoint (int pid)
+{
+ return 0;
+}
+
+static int
linux_child_set_syscall_catchpoint (int pid, int needed, int any_count,
int table_size, int *table)
{
@@ -5214,8 +5232,11 @@ static void
linux_target_install_ops (struct target_ops *t)
{
t->to_insert_fork_catchpoint = linux_child_insert_fork_catchpoint;
+ t->to_remove_fork_catchpoint = linux_child_remove_fork_catchpoint;
t->to_insert_vfork_catchpoint = linux_child_insert_vfork_catchpoint;
+ t->to_remove_vfork_catchpoint = linux_child_remove_vfork_catchpoint;
t->to_insert_exec_catchpoint = linux_child_insert_exec_catchpoint;
+ t->to_remove_exec_catchpoint = linux_child_remove_exec_catchpoint;
t->to_set_syscall_catchpoint = linux_child_set_syscall_catchpoint;
t->to_pid_to_exec_file = linux_child_pid_to_exec_file;
t->to_post_startup_inferior = linux_child_post_startup_inferior;