summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Section.cpp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2018-04-29 19:47:48 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2018-04-29 19:47:48 +0000
commite4777a9df5c28a42476c7eea7901ddf52498948e (patch)
treef9c0204b1cfebb4d12906b878ce5c0c9a1fc4566 /lldb/source/Core/Section.cpp
parent288c73e7be40be735b98a548983b4b58aa770e27 (diff)
downloadbcm5719-llvm-e4777a9df5c28a42476c7eea7901ddf52498948e.tar.gz
bcm5719-llvm-e4777a9df5c28a42476c7eea7901ddf52498948e.zip
Support reading section ".gnu_debugaltlink"
Differential revision: https://reviews.llvm.org/D40468 llvm-svn: 331148
Diffstat (limited to 'lldb/source/Core/Section.cpp')
-rw-r--r--lldb/source/Core/Section.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp
index 635b3218673..3ce051e0e98 100644
--- a/lldb/source/Core/Section.cpp
+++ b/lldb/source/Core/Section.cpp
@@ -27,8 +27,8 @@ class DataExtractor;
using namespace lldb;
using namespace lldb_private;
-static const char *GetSectionTypeAsCString(lldb::SectionType sect_type) {
- switch (sect_type) {
+const char *Section::GetTypeAsCString() const {
+ switch (m_type) {
case eSectionTypeInvalid:
return "invalid";
case eSectionTypeCode:
@@ -117,6 +117,8 @@ static const char *GetSectionTypeAsCString(lldb::SectionType sect_type) {
return "go-symtab";
case eSectionTypeAbsoluteAddress:
return "absolute";
+ case eSectionTypeDWARFGNUDebugAltLink:
+ return "dwarf-gnu-debugaltlink";
case eSectionTypeOther:
return "regular";
}
@@ -283,8 +285,7 @@ int Section::Compare(const Section &a, const Section &b) {
void Section::Dump(Stream *s, Target *target, uint32_t depth) const {
// s->Printf("%.*p: ", (int)sizeof(void*) * 2, this);
s->Indent();
- s->Printf("0x%8.8" PRIx64 " %-16s ", GetID(),
- GetSectionTypeAsCString(m_type));
+ s->Printf("0x%8.8" PRIx64 " %-16s ", GetID(), GetTypeAsCString());
bool resolved = true;
addr_t addr = LLDB_INVALID_ADDRESS;
OpenPOWER on IntegriCloud