Replace hardwired target-is-async check
authorGary Benson <gbenson@redhat.com>
Wed, 6 Aug 2014 10:50:24 +0000 (11:50 +0100)
committerGary Benson <gbenson@redhat.com>
Wed, 6 Aug 2014 10:50:24 +0000 (11:50 +0100)
This commit replaces a hardwired target-is-async check.

gdb/gdbserver/
2014-08-06  Gary Benson  <gbenson@redhat.com>

* linux-low.c (linux_supports_non_stop): Use target_is_async_p.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index 8874790107df700a13d3a2a2318f7b25715bf7c6..632fcca13a1f40e31a24420c7a0368f7c34055a7 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-06  Gary Benson  <gbenson@redhat.com>
+
+       * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
+
 2014-07-31  Gary Benson  <gbenson@redhat.com>
 
        * ax.h: Do not include server.h.
index 521d9a226b8f00fe3957155a0653f74f25de7cb6..e65e27603717c64d7f27eb9b851c1d82d4de2675 100644 (file)
@@ -5087,7 +5087,7 @@ linux_supports_non_stop (void)
 static int
 linux_async (int enable)
 {
-  int previous = (linux_event_pipe[0] != -1);
+  int previous = target_is_async_p ();
 
   if (debug_threads)
     debug_printf ("linux_async (%d), previous=%d\n",
This page took 0.033826 seconds and 4 git commands to generate.