mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 20:43:45 +08:00
Add target_ops argument to to_supports_multi_process
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_supports_multi_process>: Add argument. (target_supports_multi_process): Add argument. * target.c (update_current_target): Update. * remote.c (remote_supports_multi_process): Add 'self' argument. * linux-nat.c (linux_nat_supports_multi_process): Add 'self' argument. * darwin-nat.c (darwin_supports_multi_process): Add 'self' argument.
This commit is contained in:
parent
4c6127599b
commit
86ce266821
@ -1,3 +1,15 @@
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_supports_multi_process>: Add
|
||||
argument.
|
||||
(target_supports_multi_process): Add argument.
|
||||
* target.c (update_current_target): Update.
|
||||
* remote.c (remote_supports_multi_process): Add 'self' argument.
|
||||
* linux-nat.c (linux_nat_supports_multi_process): Add 'self'
|
||||
argument.
|
||||
* darwin-nat.c (darwin_supports_multi_process): Add 'self'
|
||||
argument.
|
||||
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_execution_direction>: Add
|
||||
|
@ -2072,7 +2072,7 @@ darwin_get_ada_task_ptid (struct target_ops *self, long lwp, long thread)
|
||||
}
|
||||
|
||||
static int
|
||||
darwin_supports_multi_process (void)
|
||||
darwin_supports_multi_process (struct target_ops *self)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@ -4566,7 +4566,7 @@ linux_nat_supports_non_stop (struct target_ops *self)
|
||||
int linux_multi_process = 1;
|
||||
|
||||
static int
|
||||
linux_nat_supports_multi_process (void)
|
||||
linux_nat_supports_multi_process (struct target_ops *self)
|
||||
{
|
||||
return linux_multi_process;
|
||||
}
|
||||
|
@ -10238,7 +10238,7 @@ remote_supports_disable_randomization (void)
|
||||
}
|
||||
|
||||
static int
|
||||
remote_supports_multi_process (void)
|
||||
remote_supports_multi_process (struct target_ops *self)
|
||||
{
|
||||
struct remote_state *rs = get_remote_state ();
|
||||
|
||||
|
@ -840,7 +840,7 @@ update_current_target (void)
|
||||
(ptid_t (*) (struct target_ops *, long, long))
|
||||
default_get_ada_task_ptid);
|
||||
de_fault (to_supports_multi_process,
|
||||
(int (*) (void))
|
||||
(int (*) (struct target_ops *))
|
||||
return_zero);
|
||||
de_fault (to_supports_enable_disable_tracepoint,
|
||||
(int (*) (void))
|
||||
|
@ -672,7 +672,7 @@ struct target_ops
|
||||
|
||||
/* Does this target support debugging multiple processes
|
||||
simultaneously? */
|
||||
int (*to_supports_multi_process) (void);
|
||||
int (*to_supports_multi_process) (struct target_ops *);
|
||||
|
||||
/* Does this target support enabling and disabling tracepoints while a trace
|
||||
experiment is running? */
|
||||
@ -1104,7 +1104,7 @@ int target_info_proc (char *, enum info_proc_what);
|
||||
simultaneously. */
|
||||
|
||||
#define target_supports_multi_process() \
|
||||
(*current_target.to_supports_multi_process) ()
|
||||
(*current_target.to_supports_multi_process) (¤t_target)
|
||||
|
||||
/* Returns true if this target can disable address space randomization. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user