Add target_ops argument to to_set_syscall_catchpoint
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:33:06 +0000 (21:33 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:45:48 +0000 (07:45 -0700)
2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
argument.
(target_set_syscall_catchpoint): Add argument.
* linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
argument.
* target.c (update_current_target): Update.

gdb/ChangeLog
gdb/linux-nat.c
gdb/target.c
gdb/target.h

index bcf582a..87f0bea 100644 (file)
@@ -1,5 +1,14 @@
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
+       * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
+       argument.
+       (target_set_syscall_catchpoint): Add argument.
+       * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
+       argument.
+       * target.c (update_current_target): Update.
+
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
        * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
        argument.
        (target_remove_exec_catchpoint): Add argument.
index c158f32..aaf55bf 100644 (file)
@@ -732,7 +732,8 @@ linux_child_remove_exec_catchpoint (struct target_ops *self, int pid)
 }
 
 static int
-linux_child_set_syscall_catchpoint (int pid, int needed, int any_count,
+linux_child_set_syscall_catchpoint (struct target_ops *self,
+                                   int pid, int needed, int any_count,
                                    int table_size, int *table)
 {
   if (!linux_supports_tracesysgood ())
index 72ab8f3..74a2817 100644 (file)
@@ -810,7 +810,7 @@ update_current_target (void)
            (int (*) (struct target_ops *, int))
            return_one);
   de_fault (to_set_syscall_catchpoint,
-           (int (*) (int, int, int, int, int *))
+           (int (*) (struct target_ops *, int, int, int, int, int *))
            return_one);
   de_fault (to_has_exited,
            (int (*) (int, int, int *))
index e500e92..f40dcdd 100644 (file)
@@ -505,7 +505,8 @@ struct target_ops
     int (*to_follow_fork) (struct target_ops *, int, int);
     int (*to_insert_exec_catchpoint) (struct target_ops *, int);
     int (*to_remove_exec_catchpoint) (struct target_ops *, int);
-    int (*to_set_syscall_catchpoint) (int, int, int, int, int *);
+    int (*to_set_syscall_catchpoint) (struct target_ops *,
+                                     int, int, int, int, int *);
     int (*to_has_exited) (int, int, int *);
     void (*to_mourn_inferior) (struct target_ops *);
     int (*to_can_run) (void);
@@ -1359,7 +1360,8 @@ int target_follow_fork (int follow_child, int detach_fork);
    for failure.  */
 
 #define target_set_syscall_catchpoint(pid, needed, any_count, table_size, table) \
-     (*current_target.to_set_syscall_catchpoint) (pid, needed, any_count, \
+     (*current_target.to_set_syscall_catchpoint) (&current_target,     \
+                                                 pid, needed, any_count, \
                                                  table_size, table)
 
 /* Returns TRUE if PID has exited.  And, also sets EXIT_STATUS to the