From 7089dca47b1738d9b65b8c3795e14aa92ac30f43 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Wed, 6 Aug 2014 11:50:24 +0100 Subject: Replace hardwired target-is-async check This commit replaces a hardwired target-is-async check. gdb/gdbserver/ 2014-08-06 Gary Benson * linux-low.c (linux_supports_non_stop): Use target_is_async_p. --- gdb/gdbserver/linux-low.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/gdbserver/linux-low.c') 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", -- cgit v1.1