aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:37:07 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:05 -0700
commit86ce266821fee1fd9af0f00862857b25f9caf4e6 (patch)
tree0c7f5810200a1ed61f7ae709c94f442b59292ad9
parent4c6127599b8d882f3125e28bca938548367bf0f3 (diff)
downloadgdb-86ce266821fee1fd9af0f00862857b25f9caf4e6.zip
gdb-86ce266821fee1fd9af0f00862857b25f9caf4e6.tar.gz
gdb-86ce266821fee1fd9af0f00862857b25f9caf4e6.tar.bz2
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.
-rw-r--r--gdb/ChangeLog12
-rw-r--r--gdb/darwin-nat.c2
-rw-r--r--gdb/linux-nat.c2
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h4
6 files changed, 18 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6724285..eeef934 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,17 @@
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
argument.
(target_execution_direction): Add argument.
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index dd44bdb..8557470 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 5bb89c1..6befbac 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 10d87b1..72e4771 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 83900f2..768b911 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 57e97ca..cb58f4c 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) (&current_target)
/* Returns true if this target can disable address space randomization. */