[Lldb-commits] [PATCH] D56115: [lldb] Check SafeToCallFunctions before calling functions in GetExceptionObjectForThread

Phabricator via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 3 16:24:35 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rLLDB350375: [lldb] Check SafeToCallFunctions before calling functions in… (authored by kuba.brecka, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D56115?vs=179589&id=180173#toc

Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56115/new/

https://reviews.llvm.org/D56115

Files:
  source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp


Index: source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
===================================================================
--- source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
+++ source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
@@ -554,6 +554,9 @@
 
 ValueObjectSP ItaniumABILanguageRuntime::GetExceptionObjectForThread(
     ThreadSP thread_sp) {
+  if (!thread_sp->SafeToCallFunctions())
+    return {};
+
   ClangASTContext *clang_ast_context =
       m_process->GetTarget().GetScratchClangASTContext();
   CompilerType voidstar =


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56115.180173.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190104/45d22999/attachment.bin>


More information about the lldb-commits mailing list