Add target_ops argument to to_supports_non_stop
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:35:26 +0000 (21:35 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:45:58 +0000 (07:45 -0700)
2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_supports_non_stop>: Add
argument.
* target.c (find_default_supports_non_stop): Add argument.
(target_supports_non_stop): Add argument.
(find_default_supports_non_stop): Add 'self' argument.
* remote.c (remote_supports_non_stop): Add 'self' argument.
* linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.

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

index 958441fa80dbb459aba9b3dfd73a2dca233523b9..327e68c8bc5ab9011f51d8de6c92039ebfbae026 100644 (file)
@@ -1,3 +1,13 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_supports_non_stop>: Add
+       argument.
+       * target.c (find_default_supports_non_stop): Add argument.
+       (target_supports_non_stop): Add argument.
+       (find_default_supports_non_stop): Add 'self' argument.
+       * remote.c (remote_supports_non_stop): Add 'self' argument.
+       * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_log_command>: Add argument.
index 9652692439631ca32d00f3ac0588a3d9f80195fd..cb8b3bd83adad15879af38df5ea1f21c2468a981 100644 (file)
@@ -4554,7 +4554,7 @@ linux_nat_can_async_p (struct target_ops *ops)
 }
 
 static int
-linux_nat_supports_non_stop (void)
+linux_nat_supports_non_stop (struct target_ops *self)
 {
   return 1;
 }
index 0a80502aa47b8b5edfc22d5c2dced31c4b44905c..d2a4d52aa8a61206469c26966971c4245bb95cd8 100644 (file)
@@ -10225,7 +10225,7 @@ remote_can_execute_reverse (void)
 }
 
 static int
-remote_supports_non_stop (void)
+remote_supports_non_stop (struct target_ops *self)
 {
   return 1;
 }
index 7ffe2df3ebb6a4d0a6b55248d7fb616312392972..0fc4e869a1b115754bb24134dba9a37a52308fd2 100644 (file)
@@ -3212,13 +3212,13 @@ find_default_is_async_p (struct target_ops *ignore)
 }
 
 static int
-find_default_supports_non_stop (void)
+find_default_supports_non_stop (struct target_ops *self)
 {
   struct target_ops *t;
 
   t = find_default_run_target (NULL);
   if (t && t->to_supports_non_stop)
-    return (t->to_supports_non_stop) ();
+    return (t->to_supports_non_stop) (t);
   return 0;
 }
 
@@ -3229,7 +3229,7 @@ target_supports_non_stop (void)
 
   for (t = &current_target; t != NULL; t = t->beneath)
     if (t->to_supports_non_stop)
-      return t->to_supports_non_stop ();
+      return t->to_supports_non_stop (t);
 
   return 0;
 }
index ceb2f04ea052a1d43a175a07dab0fd8514fa7270..c3c117a90711e074a5784bbafed51daa0d2a3588 100644 (file)
@@ -545,7 +545,7 @@ struct target_ops
       TARGET_DEFAULT_FUNC (find_default_is_async_p);
     void (*to_async) (struct target_ops *, async_callback_ftype *, void *)
       TARGET_DEFAULT_NORETURN (tcomplain ());
-    int (*to_supports_non_stop) (void);
+    int (*to_supports_non_stop) (struct target_ops *);
     /* find_memory_regions support method for gcore */
     int (*to_find_memory_regions) (find_memory_region_ftype func, void *data);
     /* make_corefile_notes support method for gcore */
This page took 0.041633 seconds and 4 git commands to generate.