diff options
author | Jason Molenda <jmolenda@apple.com> | 2017-06-29 02:57:03 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2017-06-29 02:57:03 +0000 |
commit | 43294c9f48760eae68aa8976bf0ac5e9eaa448d8 (patch) | |
tree | 4585cb01cd88fd39a900aa062686601930eb9e34 /lldb/source/API | |
parent | 8e07cadde0ba53385afd4762af3a12412609483b (diff) | |
download | bcm5719-llvm-43294c9f48760eae68aa8976bf0ac5e9eaa448d8.tar.gz bcm5719-llvm-43294c9f48760eae68aa8976bf0ac5e9eaa448d8.zip |
Change the ABI class to have a weak pointer to its Process;
some methods in the ABI need a Process to do their work.
Instead of passing it in as a one-off argument to those
methods, this patch puts it in the base class and the methods
can retrieve if it needed.
Note that ABI's are sometimes built without a Process
(e.g. SBTarget::GetStackRedZoneSize) so it's entirely
possible that the process weak pointer will not be
able to reconsistitue into a strong pointer.
<rdar://problem/32526754>
llvm-svn: 306633
Diffstat (limited to 'lldb/source/API')
-rw-r--r-- | lldb/source/API/SBTarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 0ab7375ccc3..c706344ee4a 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -2170,7 +2170,7 @@ lldb::addr_t SBTarget::GetStackRedZoneSize() { if (process_sp) abi_sp = process_sp->GetABI(); else - abi_sp = ABI::FindPlugin(target_sp->GetArchitecture()); + abi_sp = ABI::FindPlugin(ProcessSP(), target_sp->GetArchitecture()); if (abi_sp) return abi_sp->GetRedZoneSize(); } |