diff options
author | Alex Langford <apl@fb.com> | 2019-05-15 01:46:45 +0000 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-05-15 01:46:45 +0000 |
commit | 0c82307f69dc99b4827c8c2484ee43c96dbc0acf (patch) | |
tree | 559adb8ae25bbe1fdfbda5a9ede99a52fe67f7bb /source/Plugins/LanguageRuntime | |
parent | 0f106f381f1b3d5bd94b9a4cb7d44c58da180f88 (diff) | |
download | lldb-0c82307f69dc99b4827c8c2484ee43c96dbc0acf.tar.gz |
[Target] Generalize some behavior in Thread
Summary:
I don't think there's a good reason for this behavior to be considered
ObjC-specific. We can generalize this.
Differential Revision: https://reviews.llvm.org/D61776
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@360741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Plugins/LanguageRuntime')
-rw-r--r-- | source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp b/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp index 66278cacc..ca2847f6a 100644 --- a/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp +++ b/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp @@ -594,6 +594,10 @@ ValueObjectSP ItaniumABILanguageRuntime::GetExceptionObjectForThread( addr_t exception_addr = m_process->ReadPointerFromMemory(result_ptr - ptr_size, error); + if (!error.Success()) { + return ValueObjectSP(); + } + lldb_private::formatters::InferiorSizedWord exception_isw(exception_addr, *m_process); ValueObjectSP exception = ValueObject::CreateValueObjectFromData( |