From 7089dca47b1738d9b65b8c3795e14aa92ac30f43 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Wed, 6 Aug 2014 11:50:24 +0100 Subject: [PATCH] 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/ChangeLog | 4 ++++ gdb/gdbserver/linux-low.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 8874790107d..632fcca13a1 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2014-08-06 Gary Benson + + * linux-low.c (linux_supports_non_stop): Use target_is_async_p. + 2014-07-31 Gary Benson * ax.h: Do not include server.h. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 521d9a226b8..e65e2760371 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", -- 2.30.2