[Lldb-commits] [PATCH] D18287: Don't try to redefine the signal() function on Windows

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 18 16:28:31 PDT 2016


zturner added inline comments.

================
Comment at: tools/lldb-mi/Platform.h:73
@@ -74,4 +72,3 @@
 // CODETAG_IOR_SIGNALS
 // signal.h
 #define SIGQUIT 3                  // Terminal quit signal
----------------
amccarth wrote:
> As in the other file, now that we're including <signal.h>, I think the following definitions may be unnecessary and might cause compile-time warnings for non-Windows systems.
No, because Windows doesn't define them in the first place.  Windows only defines the 5 or 6 values it supports.  These are here so as to avoid having to fix up the remaining 10-20 locations and wrap them in pre-processor definitions.  `signal()` will just return an error if called with these values, but it's no different than the old implementation where we simply ignored the values by way of a switch statement that did nothing.


http://reviews.llvm.org/D18287





More information about the lldb-commits mailing list