From: Zachary Turner Date: Tue, 1 Jul 2014 00:18:46 +0000 (+0000) Subject: Fix Windows build after llgs upstream. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ec7baa9f40eb48b9c74fcb3c2194306e3a82c54;p=platform%2Fupstream%2Fllvm.git Fix Windows build after llgs upstream. With _HAS_EXCEPTIONS=0, Windows' version of will fail to compile because it calls __uncaught_exception(), which is compiled out due to _HAS_EXCEPTIONS=0. This just creates a stub version of __uncaught_exception() which always fails. llvm-svn: 212076 --- diff --git a/lldb/include/lldb/Host/msvc/Config.h b/lldb/include/lldb/Host/msvc/Config.h index cdf6f21..bdf404c 100644 --- a/lldb/include/lldb/Host/msvc/Config.h +++ b/lldb/include/lldb/Host/msvc/Config.h @@ -27,4 +27,9 @@ //#define LLDB_CONFIG_FCNTL_GETPATH_SUPPORTED 1 +#if _HAS_EXCEPTIONS == 0 +// Exceptions are disabled so this isn't defined, but concrt assumes it is. +static void *__uncaught_exception() { return nullptr; } +#endif + #endif // #ifndef liblldb_Platform_Config_h_ diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp index e59cf34..9275ddc 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp @@ -9,6 +9,8 @@ #include +#include "lldb/Host/Config.h" + #include "GDBRemoteCommunicationServer.h" #include "lldb/Core/StreamGDBRemote.h"