diff options
author | Virgile Bello <virgile.bello@gmail.com> | 2014-03-09 10:01:25 +0000 |
---|---|---|
committer | Virgile Bello <virgile.bello@gmail.com> | 2014-03-09 10:01:25 +0000 |
commit | 2641e383a23fec4c54f67f4520ea91dbfc0bab24 (patch) | |
tree | ed8b3976451287be575286123ca79fae96578734 /lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp | |
parent | be6ddab06081373943a1511cf2993041aff304ee (diff) | |
download | bcm5719-llvm-2641e383a23fec4c54f67f4520ea91dbfc0bab24.tar.gz bcm5719-llvm-2641e383a23fec4c54f67f4520ea91dbfc0bab24.zip |
Fix unwind_plan test conditions (could result in NULL memory access).
llvm-svn: 203385
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp index f209d538a71..2ab13d96707 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp @@ -820,7 +820,7 @@ RegisterContextLLDB::GetFullUnwindPlanForFrame () // We'd prefer to use an UnwindPlan intended for call sites when we're at a call site but if we've // struck out on that, fall back to using the non-call-site assembly inspection UnwindPlan if possible. unwind_plan_sp = func_unwinders_sp->GetUnwindPlanAtNonCallSite (m_thread); - if (unwind_plan_sp->GetSourcedFromCompiler() == eLazyBoolNo) + if (unwind_plan_sp && unwind_plan_sp->GetSourcedFromCompiler() == eLazyBoolNo) { // We probably have an UnwindPlan created by inspecting assembly instructions, and we probably // don't have any eh_frame instructions available. |