Author: kuba.brecka Date: Thu Jan 3 16:20:52 2019 New Revision: 350375 URL: http://llvm.org/viewvc/llvm-project?rev=350375&view=rev Log: [lldb] Check SafeToCallFunctions before calling functions in GetExceptionObjectForThread
Differential Revision: https://reviews.llvm.org/D56115 Modified: lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp Modified: lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp?rev=350375&r1=350374&r2=350375&view=diff ============================================================================== --- lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp (original) +++ lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp Thu Jan 3 16:20:52 2019 @@ -554,6 +554,9 @@ bool ItaniumABILanguageRuntime::Exceptio ValueObjectSP ItaniumABILanguageRuntime::GetExceptionObjectForThread( ThreadSP thread_sp) { + if (!thread_sp->SafeToCallFunctions()) + return {}; + ClangASTContext *clang_ast_context = m_process->GetTarget().GetScratchClangASTContext(); CompilerType voidstar = _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits