[lldb-dev] [PATCH] for linux build break in Host.cpp
Todd Fiala
tfiala at google.com
Thu Dec 12 16:38:58 PST 2013
Hi all,
Please find attached a candidate patch for this bug:
http://llvm.org/bugs/show_bug.cgi?id=18236
It fixes an issue where a signum => name mapping function has multiple case
statements that define to the same integral value on my Linux (Ubuntu
12.04, x86_64). It's for SIGIO and SIGPOLL. In the case that they are
both defined the same, I have SIGIO winning on the name mapping.
If that sounds reasonable, could I get a committer to apply it? Thanks!
-Todd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131212/f5089acf/attachment.html>
-------------- next part --------------
diff --git a/source/Host/common/Host.cpp b/source/Host/common/Host.cpp
index fc6d697..5226ba5 100644
--- a/source/Host/common/Host.cpp
+++ b/source/Host/common/Host.cpp
@@ -491,8 +491,10 @@ Host::GetSignalAsCString (int signo)
case SIGTRAP: return "SIGTRAP"; // 5 trace trap (not reset when caught)
case SIGABRT: return "SIGABRT"; // 6 abort()
#if defined(SIGPOLL)
+#if !defined(SIGIO) || (SIGPOLL != SIGIO)
case SIGPOLL: return "SIGPOLL"; // 7 pollable event ([XSR] generated, not supported)
#endif
+#endif
#if defined(SIGEMT)
case SIGEMT: return "SIGEMT"; // 7 EMT instruction
#endif
More information about the lldb-dev
mailing list