diff options
author | Greg Clayton <gclayton@apple.com> | 2010-07-21 22:54:26 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-07-21 22:54:26 +0000 |
commit | 4ceb9980c867fb3650e0dccd53fe1fe3adbec41d (patch) | |
tree | 877ab3d2d40e0acc02ba096d56e229d5d0ff1b72 /lldb/source/Core/Section.cpp | |
parent | 222f4be834ed7faa2c89ee2d985be282594b1ed1 (diff) | |
download | bcm5719-llvm-4ceb9980c867fb3650e0dccd53fe1fe3adbec41d.tar.gz bcm5719-llvm-4ceb9980c867fb3650e0dccd53fe1fe3adbec41d.zip |
Modified both the ObjectFileMachO and ObjectFileELF to correctly set the
SectionType for Section objects for DWARF.
Modified the DWARF plug-in to get the DWARF sections by SectionType so we
can safely abstract the LLDB core from section names for the various object
file formats.
Modified the SectionType definitions for .debug_pubnames and .debug_pubtypes
to use the correct case.
llvm-svn: 109054
Diffstat (limited to 'lldb/source/Core/Section.cpp')
-rw-r--r-- | lldb/source/Core/Section.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp index e4617a8ee99..a86695d46e7 100644 --- a/lldb/source/Core/Section.cpp +++ b/lldb/source/Core/Section.cpp @@ -568,7 +568,7 @@ SectionList::FindSectionByID (user_id_t sect_id) const SectionSP -SectionList::FindSectionByType (lldb::SectionType sect_type, uint32_t start_idx) const +SectionList::FindSectionByType (lldb::SectionType sect_type, bool check_children, uint32_t start_idx) const { SectionSP sect_sp; uint32_t num_sections = m_sections.size(); @@ -579,6 +579,12 @@ SectionList::FindSectionByType (lldb::SectionType sect_type, uint32_t start_idx) sect_sp = m_sections[idx]; break; } + else if (check_children) + { + sect_sp = m_sections[idx]->GetChildren().FindSectionByType (sect_type, check_children, 0); + if (sect_sp) + break; + } } return sect_sp; } |