diff options
| -rw-r--r-- | lldb/include/lldb/Host/msvc/Config.h | 5 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lldb/include/lldb/Host/msvc/Config.h b/lldb/include/lldb/Host/msvc/Config.h index cdf6f21e098..bdf404c4f46 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 e59cf34f8e3..9275ddcda1b 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp @@ -9,6 +9,8 @@ #include <errno.h> +#include "lldb/Host/Config.h" + #include "GDBRemoteCommunicationServer.h" #include "lldb/Core/StreamGDBRemote.h" |

