Add target_ops argument to to_remove_fork_catchpoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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.
This commit is contained in:
parent
a863b201d7
commit
973fc22752
@ -1,3 +1,13 @@
|
|||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.h (struct target_ops) <to_remove_fork_catchpoint>: 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 <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
|
* target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
|
||||||
|
@ -702,7 +702,7 @@ linux_child_insert_fork_catchpoint (struct target_ops *self, int pid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
linux_child_remove_fork_catchpoint (int pid)
|
linux_child_remove_fork_catchpoint (struct target_ops *self, int pid)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -795,7 +795,7 @@ update_current_target (void)
|
|||||||
(int (*) (struct target_ops *, int))
|
(int (*) (struct target_ops *, int))
|
||||||
return_one);
|
return_one);
|
||||||
de_fault (to_remove_fork_catchpoint,
|
de_fault (to_remove_fork_catchpoint,
|
||||||
(int (*) (int))
|
(int (*) (struct target_ops *, int))
|
||||||
return_one);
|
return_one);
|
||||||
de_fault (to_insert_vfork_catchpoint,
|
de_fault (to_insert_vfork_catchpoint,
|
||||||
(int (*) (int))
|
(int (*) (int))
|
||||||
@ -4879,11 +4879,11 @@ debug_to_insert_fork_catchpoint (struct target_ops *self, int pid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
debug_to_remove_fork_catchpoint (int pid)
|
debug_to_remove_fork_catchpoint (struct target_ops *self, int pid)
|
||||||
{
|
{
|
||||||
int retval;
|
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",
|
fprintf_unfiltered (gdb_stdlog, "target_remove_fork_catchpoint (%d) = %d\n",
|
||||||
pid, retval);
|
pid, retval);
|
||||||
|
@ -499,7 +499,7 @@ struct target_ops
|
|||||||
char *, char *, char **, int);
|
char *, char *, char **, int);
|
||||||
void (*to_post_startup_inferior) (struct target_ops *, ptid_t);
|
void (*to_post_startup_inferior) (struct target_ops *, ptid_t);
|
||||||
int (*to_insert_fork_catchpoint) (struct target_ops *, int);
|
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_insert_vfork_catchpoint) (int);
|
||||||
int (*to_remove_vfork_catchpoint) (int);
|
int (*to_remove_vfork_catchpoint) (int);
|
||||||
int (*to_follow_fork) (struct target_ops *, int, 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)
|
(*current_target.to_insert_fork_catchpoint) (¤t_target, pid)
|
||||||
|
|
||||||
#define target_remove_fork_catchpoint(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) \
|
#define target_insert_vfork_catchpoint(pid) \
|
||||||
(*current_target.to_insert_vfork_catchpoint) (pid)
|
(*current_target.to_insert_vfork_catchpoint) (pid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user