[lldb] Check SafeToCallFunctions before calling functions in GetExceptionObjectForThread

Differential Revision: https://reviews.llvm.org/D56115

llvm-svn: 350375
This commit is contained in:
Kuba Mracek 2019-01-04 00:20:52 +00:00
parent 6265a15f2e
commit 19d1f20927
1 changed files with 3 additions and 0 deletions

View File

@ -554,6 +554,9 @@ bool ItaniumABILanguageRuntime::ExceptionBreakpointsExplainStop(
ValueObjectSP ItaniumABILanguageRuntime::GetExceptionObjectForThread(
ThreadSP thread_sp) {
if (!thread_sp->SafeToCallFunctions())
return {};
ClangASTContext *clang_ast_context =
m_process->GetTarget().GetScratchClangASTContext();
CompilerType voidstar =