diff options
author | Greg Clayton <gclayton@apple.com> | 2010-10-08 00:21:05 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-10-08 00:21:05 +0000 |
commit | 8941142af83243ece14d49c4f7adb551aa19af82 (patch) | |
tree | 3a83f7e7b868d8902a5a781d25d623b2e9f2fabd /lldb/source/Core/Section.cpp | |
parent | e2245542ce6ec6d47c53ea856dc2beef3dff9f99 (diff) | |
download | bcm5719-llvm-8941142af83243ece14d49c4f7adb551aa19af82.tar.gz bcm5719-llvm-8941142af83243ece14d49c4f7adb551aa19af82.zip |
Hooked up ability to look up data symbols so they show up in disassembly
if the address comes from a data section.
Fixed an issue that could occur when looking up a symbol that has a zero
byte size where no match would be returned even if there was an exact symbol
match.
Cleaned up the section dump output and added the section type into the output.
llvm-svn: 116017
Diffstat (limited to 'lldb/source/Core/Section.cpp')
-rw-r--r-- | lldb/source/Core/Section.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp index f4e8800222c..3dae577c5c8 100644 --- a/lldb/source/Core/Section.cpp +++ b/lldb/source/Core/Section.cpp @@ -222,11 +222,11 @@ Section::Compare (const Section& a, const Section& b) void -Section::Dump(Stream *s, Target *target) const +Section::Dump (Stream *s, Target *target) const { - s->Printf("%.*p: ", (int)sizeof(void*) * 2, this); +// s->Printf("%.*p: ", (int)sizeof(void*) * 2, this); s->Indent(); - s->Printf("0x%8.8x ", GetID()); + s->Printf("0x%8.8x %-14s ", GetID(), GetSectionTypeAsCString (m_type)); bool resolved = true; addr_t addr = LLDB_INVALID_ADDRESS; @@ -672,16 +672,16 @@ SectionList::Dump (Stream *s, Target *target, bool show_header) const { if (show_header && !m_sections.empty()) { - s->Printf("%.*p: ", (int)sizeof(void*) * 2, this); +// s->Printf("%.*p: ", (int)sizeof(void*) * 2, this); +// s->Indent(); +// s->PutCString( "SectionList\n"); +// s->IndentMore(); +// s->Printf("%*s", 2*(sizeof(void *) + 2), ""); s->Indent(); - s->PutCString( "SectionList\n"); - s->IndentMore(); - s->Printf("%*s", 2*(sizeof(void *) + 2), ""); + s->Printf("SectID Type %s Address File Off. File Size Flags Section Name\n", (target && target->GetSectionLoadList().IsEmpty() == false) ? "Load" : "File"); +// s->Printf("%*s", 2*(sizeof(void *) + 2), ""); s->Indent(); - s->Printf("SectID %s Address File Off. File Size Flags Section Name\n", (target && target->GetSectionLoadList().IsEmpty() == false) ? "Load" : "File"); - s->Printf("%*s", 2*(sizeof(void *) + 2), ""); - s->Indent(); - s->PutCString("---------- --------------------------------------- ---------- ---------- ---------- ----------------------------\n"); + s->PutCString("---------- -------------- --------------------------------------- ---------- ---------- ---------- ----------------------------\n"); } |