From: Tom Tromey Date: Wed, 18 Dec 2013 04:32:05 +0000 (-0700) Subject: Add target_ops argument to to_remove_fork_catchpoint X-Git-Tag: gdb-7.8-release~1266 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=973fc2275208a4bfd7dddaa825e0b08b2100546e;p=platform%2Fupstream%2Fbinutils.git Add target_ops argument to to_remove_fork_catchpoint 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. (target_remove_fork_catchpoint): Add argument. * target.c (debug_to_remove_fork_catchpoint): Add argument. (update_current_target): Update. * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 561333c..df51aab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2014-02-19 Tom Tromey + * target.h (struct target_ops) : Add + argument. + (target_remove_fork_catchpoint): Add argument. + * target.c (debug_to_remove_fork_catchpoint): Add argument. + (update_current_target): Update. + * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self' + argument. + +2014-02-19 Tom Tromey + * target.h (struct target_ops) : Add argument. (target_insert_fork_catchpoint): Add argument. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 95b003f..d4f6bf4 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -702,7 +702,7 @@ linux_child_insert_fork_catchpoint (struct target_ops *self, int pid) } static int -linux_child_remove_fork_catchpoint (int pid) +linux_child_remove_fork_catchpoint (struct target_ops *self, int pid) { return 0; } diff --git a/gdb/target.c b/gdb/target.c index a0c7214..c833645 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -795,7 +795,7 @@ update_current_target (void) (int (*) (struct target_ops *, int)) return_one); de_fault (to_remove_fork_catchpoint, - (int (*) (int)) + (int (*) (struct target_ops *, int)) return_one); de_fault (to_insert_vfork_catchpoint, (int (*) (int)) @@ -4879,11 +4879,11 @@ debug_to_insert_fork_catchpoint (struct target_ops *self, int pid) } static int -debug_to_remove_fork_catchpoint (int pid) +debug_to_remove_fork_catchpoint (struct target_ops *self, int pid) { int retval; - retval = debug_target.to_remove_fork_catchpoint (pid); + retval = debug_target.to_remove_fork_catchpoint (&debug_target, pid); fprintf_unfiltered (gdb_stdlog, "target_remove_fork_catchpoint (%d) = %d\n", pid, retval); diff --git a/gdb/target.h b/gdb/target.h index add3b0c..54cc085 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -499,7 +499,7 @@ struct target_ops char *, char *, char **, int); void (*to_post_startup_inferior) (struct target_ops *, ptid_t); int (*to_insert_fork_catchpoint) (struct target_ops *, int); - int (*to_remove_fork_catchpoint) (int); + int (*to_remove_fork_catchpoint) (struct target_ops *, int); int (*to_insert_vfork_catchpoint) (int); int (*to_remove_vfork_catchpoint) (int); int (*to_follow_fork) (struct target_ops *, int, int); @@ -1309,7 +1309,7 @@ void target_create_inferior (char *exec_file, char *args, (*current_target.to_insert_fork_catchpoint) (¤t_target, pid) #define target_remove_fork_catchpoint(pid) \ - (*current_target.to_remove_fork_catchpoint) (pid) + (*current_target.to_remove_fork_catchpoint) (¤t_target, pid) #define target_insert_vfork_catchpoint(pid) \ (*current_target.to_insert_vfork_catchpoint) (pid)