aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-05-13 11:13:19 +0200
committerPavel Labath <pavel@labath.sk>2020-05-14 11:59:18 +0200
commit3a16829748a1ed208a37c719d3a3bcca50dcbd0f (patch)
tree44398834c011be48d6de4b3e4f1e768f46a84e81 /lldb/source/Commands/CommandObjectTarget.cpp
parentf665e80c023ec52557f55d7eeaf34471e4c6fa0d (diff)
downloadllvm-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.cpp4
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();
}
}
}