From: Tom Tromey Date: Wed, 18 Dec 2013 04:33:06 +0000 (-0700) Subject: Add target_ops argument to to_set_syscall_catchpoint X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff214e679c60368c23e4052c9efcc7457a3a2c43;p=binutils-gdb.git Add target_ops argument to to_set_syscall_catchpoint 2014-02-19 Tom Tromey * target.h (struct target_ops) : 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bcf582aaf85..87f0beac1a9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : 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 * target.h (struct target_ops) : Add diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index c158f32a9fc..aaf55bfaa3e 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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 ()) diff --git a/gdb/target.c b/gdb/target.c index 72ab8f3fa0a..74a2817034e 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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 *)) diff --git a/gdb/target.h b/gdb/target.h index e500e92335b..f40dcdd1d05 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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) (¤t_target, \ + pid, needed, any_count, \ table_size, table) /* Returns TRUE if PID has exited. And, also sets EXIT_STATUS to the