diff options
author | Pavel Labath <pavel@labath.sk> | 2020-05-13 11:13:19 +0200 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2020-05-14 11:59:18 +0200 |
commit | 3a16829748a1ed208a37c719d3a3bcca50dcbd0f (patch) | |
tree | 44398834c011be48d6de4b3e4f1e768f46a84e81 /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | f665e80c023ec52557f55d7eeaf34471e4c6fa0d (diff) | |
download | llvm-3a16829748a1ed208a37c719d3a3bcca50dcbd0f.zip llvm-3a16829748a1ed208a37c719d3a3bcca50dcbd0f.tar.gz llvm-3a16829748a1ed208a37c719d3a3bcca50dcbd0f.tar.bz2 |
[lldb] Switch Section-dumping code to raw_ostream
Also, add a basic test for dumping sections.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 8db0eef..41a6135 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -1442,11 +1442,9 @@ static void DumpModuleSections(CommandInterpreter &interpreter, Stream &strm, strm.Printf("Sections for '%s' (%s):\n", module->GetSpecificationDescription().c_str(), module->GetArchitecture().GetArchitectureName()); - strm.IndentMore(); - section_list->Dump(&strm, + section_list->Dump(strm.AsRawOstream(), strm.GetIndentLevel() + 2, interpreter.GetExecutionContext().GetTargetPtr(), true, UINT32_MAX); - strm.IndentLess(); } } } |