summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/StackFrameList.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2015-02-23 18:12:20 +0000
committerEd Maste <emaste@freebsd.org>2015-02-23 18:12:20 +0000
commitff1b5c4244bd325104c40b7aba6b2d4d0749cbad (patch)
treed9e38e92e7eeba2a2e4272fae943ce730c16298f /lldb/source/Target/StackFrameList.cpp
parentafe27c7d278a4a36331c5d18be3af901bea378b6 (diff)
downloadbcm5719-llvm-ff1b5c4244bd325104c40b7aba6b2d4d0749cbad.tar.gz
bcm5719-llvm-ff1b5c4244bd325104c40b7aba6b2d4d0749cbad.zip
Add null RegisterContext assertions
This makes these failures slightly more obvious, avoiding the need to run LLDB under a debugger or rely on a LLDB core. I encountered these while bringing up a new OS/arch combination. llvm-svn: 230236
Diffstat (limited to 'lldb/source/Target/StackFrameList.cpp')
-rw-r--r--lldb/source/Target/StackFrameList.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Target/StackFrameList.cpp b/lldb/source/Target/StackFrameList.cpp
index 9a132618288..43a4b5b122f 100644
--- a/lldb/source/Target/StackFrameList.cpp
+++ b/lldb/source/Target/StackFrameList.cpp
@@ -343,6 +343,7 @@ StackFrameList::GetFramesUpTo(uint32_t end_idx)
m_frames.push_back (unwind_frame_sp);
}
+ assert(unwind_frame_sp);
SymbolContext unwind_sc = unwind_frame_sp->GetSymbolContext (eSymbolContextBlock | eSymbolContextFunction);
Block *unwind_block = unwind_sc.block;
if (unwind_block)
OpenPOWER on IntegriCloud