diff options
Diffstat (limited to 'lldb/source/API/SBSection.cpp')
-rw-r--r-- | lldb/source/API/SBSection.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/API/SBSection.cpp b/lldb/source/API/SBSection.cpp index 354779984c3..3fb84e81465 100644 --- a/lldb/source/API/SBSection.cpp +++ b/lldb/source/API/SBSection.cpp @@ -69,6 +69,20 @@ SBSection::GetName () return NULL; } +lldb::SBSection +SBSection::GetParent() +{ + lldb::SBSection sb_section; + SectionSP section_sp (GetSP()); + if (section_sp) + { + SectionSP parent_section_sp (section_sp->GetParent()); + if (parent_section_sp) + sb_section.SetSP(parent_section_sp); + } + return sb_section; +} + lldb::SBSection SBSection::FindSubSection (const char *sect_name) |