[Lldb-commits] [lldb] r313704 - Signal polling is supported with pselect
Eugene Zemtsov via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 19 17:39:04 PDT 2017
Author: eugene
Date: Tue Sep 19 17:39:04 2017
New Revision: 313704
URL: http://llvm.org/viewvc/llvm-project?rev=313704&view=rev
Log:
Signal polling is supported with pselect
Older Android API levels don't have ppoll, but LLDB works just fine,
since on Android it always uses pselect anyway.
Modified:
lldb/trunk/include/lldb/Host/MainLoop.h
lldb/trunk/source/Host/common/MainLoop.cpp
Modified: lldb/trunk/include/lldb/Host/MainLoop.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/MainLoop.h?rev=313704&r1=313703&r2=313704&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/MainLoop.h (original)
+++ lldb/trunk/include/lldb/Host/MainLoop.h Tue Sep 19 17:39:04 2017
@@ -15,7 +15,12 @@
#include "llvm/ADT/DenseMap.h"
#include <csignal>
-#if !HAVE_PPOLL && !HAVE_SYS_EVENT_H
+#ifdef __ANDROID__
+#define FORCE_PSELECT
+#endif
+
+#if !defined(HAVE_PPOLL) && !defined(HAVE_SYS_EVENT_H) && \
+ !defined(FORCE_PSELECT)
#define SIGNAL_POLLING_UNSUPPORTED 1
#endif
Modified: lldb/trunk/source/Host/common/MainLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/MainLoop.cpp?rev=313704&r1=313703&r2=313704&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/MainLoop.cpp (original)
+++ lldb/trunk/source/Host/common/MainLoop.cpp Tue Sep 19 17:39:04 2017
@@ -38,10 +38,6 @@
#define POLL poll
#endif
-#ifdef __ANDROID__
-#define FORCE_PSELECT
-#endif
-
#if SIGNAL_POLLING_UNSUPPORTED
#ifdef LLVM_ON_WIN32
typedef int sigset_t;
More information about the lldb-commits
mailing list