diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-03-22 00:38:45 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-03-22 00:38:45 +0000 |
commit | 584ce2f349e2f8f350826c88a21485132bafb8a4 (patch) | |
tree | 81e38552ccf8530e7202c15d0ea02179d8725eaf | |
parent | 4f69a0f25df15231d78c9ce5de735d7529c8bde0 (diff) | |
download | bcm5719-llvm-584ce2f349e2f8f350826c88a21485132bafb8a4.tar.gz bcm5719-llvm-584ce2f349e2f8f350826c88a21485132bafb8a4.zip |
Don't try to read the eh_frame section out of a dSYM.
It won't have one and it isn't needed.
llvm-svn: 177688
-rw-r--r-- | lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index 6f309323689..069d23e72c9 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -1477,7 +1477,11 @@ ObjectFileMachO::ParseSymtab (bool minimize) } else { - if (text_section_sp.get() && eh_frame_section_sp.get()) + // If m_type is eTypeDebugInfo, then this is a dSYM - it will have the load command claiming an eh_frame + // but it doesn't actually have the eh_frame content. And if we have a dSYM, we don't need to do any + // of this fill-in-the-missing-symbols works anyway - the debug info should give us all the functions in + // the module. + if (text_section_sp.get() && eh_frame_section_sp.get() && m_type != eTypeDebugInfo) { DWARFCallFrameInfo eh_frame(*this, eh_frame_section_sp, eRegisterKindGCC, true); DWARFCallFrameInfo::FunctionAddressAndSizeVector functions; |