aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-08-06 11:50:24 +0100
committerGary Benson <gbenson@redhat.com>2014-08-06 11:50:24 +0100
commit7089dca47b1738d9b65b8c3795e14aa92ac30f43 (patch)
tree76e72cececfa26c8a01c975e5a7b37816e25a38c /gdb/gdbserver
parent97964ab320d2fd9557ad84e6c8b7b500c518a686 (diff)
downloadgdb-7089dca47b1738d9b65b8c3795e14aa92ac30f43.zip
gdb-7089dca47b1738d9b65b8c3795e14aa92ac30f43.tar.gz
gdb-7089dca47b1738d9b65b8c3795e14aa92ac30f43.tar.bz2
Replace hardwired target-is-async check
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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 8874790..632fcca 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 521d9a2..e65e276 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -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",