]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2011-04-29 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Fri, 29 Apr 2011 16:02:10 +0000 (16:02 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 29 Apr 2011 16:02:10 +0000 (16:02 +0000)
* 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.

gdb/ChangeLog
gdb/linux-nat.c

index 53623c0bf9dc75e3a4b5ee869b6d6326c5f9c9cc..9910084b30e8876babec3b483c8d814cbf62beb9 100644 (file)
@@ -1,3 +1,10 @@
+2011-04-29  Pedro Alves  <pedro@codesourcery.com>
+
+       * 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.
+
 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
 
        PR mi/12531
index 732812d0a171790cfb4431a08e7aff5276b908e5..44a2a214c28f1ea7626e5c26bd02938f37b77c9f 100644 (file)
@@ -980,18 +980,36 @@ linux_child_insert_fork_catchpoint (int pid)
   return !linux_supports_tracefork (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)
@@ -5244,8 +5262,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;