Add target_ops argument to to_supports_multi_process
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:37:07 +0000 (21:37 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:46:05 +0000 (07:46 -0700)
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.

gdb/ChangeLog
gdb/darwin-nat.c
gdb/linux-nat.c
gdb/remote.c
gdb/target.c
gdb/target.h

index 6724285..eeef934 100644 (file)
@@ -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.
index dd44bdb..8557470 100644 (file)
@@ -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;
 }
index 5bb89c1..6befbac 100644 (file)
@@ -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;
 }
index 10d87b1..72e4771 100644 (file)
@@ -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 ();
 
index 83900f2..768b911 100644 (file)
@@ -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))
index 57e97ca..cb58f4c 100644 (file)
@@ -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.  */