[Lldb-commits] [lldb] r346573 - Unbreak the linux bot from the previous commit. Fred needed to use

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 9 16:25:45 PST 2018


Author: jmolenda
Date: Fri Nov  9 16:25:45 2018
New Revision: 346573

URL: http://llvm.org/viewvc/llvm-project?rev=346573&view=rev
Log:
Unbreak the linux bot from the previous commit.  Fred needed to use
some of the macros from mach/exc_resource.h to decode EXC_RESOURCE,
but that header doesn't exist on non-apple platforms and
StopInfoMachException.cpp needs to build on those systems.
EXC_RESOURCE won't be decoded when lldb is built on non-darwin systems.


Modified:
    lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp?rev=346573&r1=346572&r2=346573&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp Fri Nov  9 16:25:45 2018
@@ -10,7 +10,11 @@
 #include "StopInfoMachException.h"
 
 // C Includes
+
+#if defined(__APPLE__)
+// Needed for the EXC_RESOURCE interpretation macros
 #include <kern/exc_resource.h>
+#endif
 
 // C++ Includes
 // Other libraries and framework includes
@@ -281,6 +285,7 @@ const char *StopInfoMachException::GetDe
       break;
     case 11:
       exc_desc = "EXC_RESOURCE";
+#if defined(__APPLE__)
       {
         int resource_type = EXC_RESOURCE_DECODE_RESOURCE_TYPE(m_exc_code);
 
@@ -320,6 +325,7 @@ const char *StopInfoMachException::GetDe
           break;
         }
       }
+#endif
       break;
     case 12:
       exc_desc = "EXC_GUARD";




More information about the lldb-commits mailing list