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"; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits