[lldb] Switch Section-dumping code to raw_ostream

Also, add a basic test for dumping sections.
This commit is contained in:
Pavel Labath
2020-05-13 11:13:19 +02:00
parent f665e80c02
commit 3a16829748
12 changed files with 87 additions and 52 deletions

View File

@@ -2957,7 +2957,8 @@ void ObjectFileELF::Dump(Stream *s) {
s->EOL();
SectionList *section_list = GetSectionList();
if (section_list)
section_list->Dump(s, nullptr, true, UINT32_MAX);
section_list->Dump(s->AsRawOstream(), s->GetIndentLevel(), nullptr, true,
UINT32_MAX);
Symtab *symtab = GetSymtab();
if (symtab)
symtab->Dump(s, nullptr, eSortOrderNone);