diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:32:29 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:46 -0700 |
commit | e98cf0cd4f099c07016d50b136713559d21755b2 (patch) | |
tree | 49addbbff5cdef9fe478aec8234128687a3bb49a /gdb | |
parent | 3ecc7da0cbf59dd2d731f14917d9c71fb8a58676 (diff) | |
download | gdb-e98cf0cd4f099c07016d50b136713559d21755b2.zip gdb-e98cf0cd4f099c07016d50b136713559d21755b2.tar.gz gdb-e98cf0cd4f099c07016d50b136713559d21755b2.tar.bz2 |
Add target_ops argument to to_remove_vfork_catchpoint
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
argument.
(target_remove_vfork_catchpoint): Add argument.
* target.c (debug_to_remove_vfork_catchpoint): Add argument.
(update_current_target): Update.
* linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
argument.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/linux-nat.c | 2 | ||||
-rw-r--r-- | gdb/target.c | 6 | ||||
-rw-r--r-- | gdb/target.h | 4 |
4 files changed, 16 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0fc6b1..f9ab94b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add + argument. + (target_remove_vfork_catchpoint): Add argument. + * target.c (debug_to_remove_vfork_catchpoint): Add argument. + (update_current_target): Update. + * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self' + argument. + +2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add argument. (target_insert_vfork_catchpoint): Add argument. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index e5144a7..fa862f6 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -714,7 +714,7 @@ linux_child_insert_vfork_catchpoint (struct target_ops *self, int pid) } static int -linux_child_remove_vfork_catchpoint (int pid) +linux_child_remove_vfork_catchpoint (struct target_ops *self, int pid) { return 0; } diff --git a/gdb/target.c b/gdb/target.c index 0726f27..edc3b97 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -801,7 +801,7 @@ update_current_target (void) (int (*) (struct target_ops *, int)) return_one); de_fault (to_remove_vfork_catchpoint, - (int (*) (int)) + (int (*) (struct target_ops *, int)) return_one); de_fault (to_insert_exec_catchpoint, (int (*) (int)) @@ -4905,11 +4905,11 @@ debug_to_insert_vfork_catchpoint (struct target_ops *self, int pid) } static int -debug_to_remove_vfork_catchpoint (int pid) +debug_to_remove_vfork_catchpoint (struct target_ops *self, int pid) { int retval; - retval = debug_target.to_remove_vfork_catchpoint (pid); + retval = debug_target.to_remove_vfork_catchpoint (&debug_target, pid); fprintf_unfiltered (gdb_stdlog, "target_remove_vfork_catchpoint (%d) = %d\n", pid, retval); diff --git a/gdb/target.h b/gdb/target.h index ff907b9..0717e1a 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -501,7 +501,7 @@ struct target_ops int (*to_insert_fork_catchpoint) (struct target_ops *, int); int (*to_remove_fork_catchpoint) (struct target_ops *, int); int (*to_insert_vfork_catchpoint) (struct target_ops *, int); - int (*to_remove_vfork_catchpoint) (int); + int (*to_remove_vfork_catchpoint) (struct target_ops *, int); int (*to_follow_fork) (struct target_ops *, int, int); int (*to_insert_exec_catchpoint) (int); int (*to_remove_exec_catchpoint) (int); @@ -1315,7 +1315,7 @@ void target_create_inferior (char *exec_file, char *args, (*current_target.to_insert_vfork_catchpoint) (¤t_target, pid) #define target_remove_vfork_catchpoint(pid) \ - (*current_target.to_remove_vfork_catchpoint) (pid) + (*current_target.to_remove_vfork_catchpoint) (¤t_target, pid) /* If the inferior forks or vforks, this function will be called at the next resume in order to perform any bookkeeping and fiddling |