From 86ce266821fee1fd9af0f00862857b25f9caf4e6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:37:07 -0700 Subject: [PATCH] Add target_ops argument to to_supports_multi_process 2014-02-19 Tom Tromey * target.h (struct target_ops) : 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. --- gdb/ChangeLog | 12 ++++++++++++ gdb/darwin-nat.c | 2 +- gdb/linux-nat.c | 2 +- gdb/remote.c | 2 +- gdb/target.c | 2 +- gdb/target.h | 4 ++-- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6724285263..eeef934528 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : 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 * target.h (struct target_ops) : Add diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index dd44bdb6ee..85574701cf 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -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; } diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 5bb89c1894..6befbac064 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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; } diff --git a/gdb/remote.c b/gdb/remote.c index 10d87b1938..72e4771355 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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 (); diff --git a/gdb/target.c b/gdb/target.c index 83900f2819..768b911ce3 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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)) diff --git a/gdb/target.h b/gdb/target.h index 57e97caffd..cb58f4cb30 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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. */ -- 2.34.1