Add target_ops argument to to_insert_exec_catchpoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add argument. (target_insert_exec_catchpoint): Add argument. * target.c (debug_to_insert_exec_catchpoint): Add argument. (update_current_target): Update. * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self' argument.
This commit is contained in:
parent
e98cf0cd4f
commit
ba025e51ae
@ -1,3 +1,13 @@
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
|
||||
argument.
|
||||
(target_insert_exec_catchpoint): Add argument.
|
||||
* target.c (debug_to_insert_exec_catchpoint): Add argument.
|
||||
(update_current_target): Update.
|
||||
* linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
|
||||
argument.
|
||||
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
|
||||
|
@ -720,7 +720,7 @@ linux_child_remove_vfork_catchpoint (struct target_ops *self, int pid)
|
||||
}
|
||||
|
||||
static int
|
||||
linux_child_insert_exec_catchpoint (int pid)
|
||||
linux_child_insert_exec_catchpoint (struct target_ops *self, int pid)
|
||||
{
|
||||
return !linux_supports_tracefork ();
|
||||
}
|
||||
|
@ -804,7 +804,7 @@ update_current_target (void)
|
||||
(int (*) (struct target_ops *, int))
|
||||
return_one);
|
||||
de_fault (to_insert_exec_catchpoint,
|
||||
(int (*) (int))
|
||||
(int (*) (struct target_ops *, int))
|
||||
return_one);
|
||||
de_fault (to_remove_exec_catchpoint,
|
||||
(int (*) (int))
|
||||
@ -4918,11 +4918,11 @@ debug_to_remove_vfork_catchpoint (struct target_ops *self, int pid)
|
||||
}
|
||||
|
||||
static int
|
||||
debug_to_insert_exec_catchpoint (int pid)
|
||||
debug_to_insert_exec_catchpoint (struct target_ops *self, int pid)
|
||||
{
|
||||
int retval;
|
||||
|
||||
retval = debug_target.to_insert_exec_catchpoint (pid);
|
||||
retval = debug_target.to_insert_exec_catchpoint (&debug_target, pid);
|
||||
|
||||
fprintf_unfiltered (gdb_stdlog, "target_insert_exec_catchpoint (%d) = %d\n",
|
||||
pid, retval);
|
||||
|
@ -503,7 +503,7 @@ struct target_ops
|
||||
int (*to_insert_vfork_catchpoint) (struct target_ops *, 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_insert_exec_catchpoint) (struct target_ops *, int);
|
||||
int (*to_remove_exec_catchpoint) (int);
|
||||
int (*to_set_syscall_catchpoint) (int, int, int, int, int *);
|
||||
int (*to_has_exited) (int, int, int *);
|
||||
@ -1333,7 +1333,7 @@ int target_follow_fork (int follow_child, int detach_fork);
|
||||
catchpoint type is not supported and -1 for failure. */
|
||||
|
||||
#define target_insert_exec_catchpoint(pid) \
|
||||
(*current_target.to_insert_exec_catchpoint) (pid)
|
||||
(*current_target.to_insert_exec_catchpoint) (¤t_target, pid)
|
||||
|
||||
#define target_remove_exec_catchpoint(pid) \
|
||||
(*current_target.to_remove_exec_catchpoint) (pid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user