summaryrefslogtreecommitdiffstats
path: root/lldb/tools
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-05-31 22:09:00 +0000
committerVedant Kumar <vsk@apple.com>2018-05-31 22:09:00 +0000
commit7e4c84a78c5d3dc13f0fc9c20a63e2fcdcb84e55 (patch)
tree5b0a92abcb1b266a493d275ec271ec34acaa1257 /lldb/tools
parentf616b9db7dc1627e3c892ed1c0a41ffe6213c840 (diff)
downloadbcm5719-llvm-7e4c84a78c5d3dc13f0fc9c20a63e2fcdcb84e55.tar.gz
bcm5719-llvm-7e4c84a78c5d3dc13f0fc9c20a63e2fcdcb84e55.zip
[lldb-test] Make logging available to all subcommands
llvm-svn: 333699
Diffstat (limited to 'lldb/tools')
-rw-r--r--lldb/tools/lldb-test/lldb-test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/tools/lldb-test/lldb-test.cpp b/lldb/tools/lldb-test/lldb-test.cpp
index b06ed7cb49b..01ac977d9be 100644
--- a/lldb/tools/lldb-test/lldb-test.cpp
+++ b/lldb/tools/lldb-test/lldb-test.cpp
@@ -53,7 +53,10 @@ cl::SubCommand ModuleSubcommand("module-sections",
"Display LLDB Module Information");
cl::SubCommand SymbolsSubcommand("symbols", "Dump symbols for an object file");
cl::SubCommand IRMemoryMapSubcommand("ir-memory-map", "Test IRMemoryMap");
+
cl::opt<std::string> Log("log", cl::desc("Path to a log file"), cl::init(""),
+ cl::sub(BreakpointSubcommand),
+ cl::sub(ModuleSubcommand), cl::sub(SymbolsSubcommand),
cl::sub(IRMemoryMapSubcommand));
/// Create a target using the file pointed to by \p Filename, or abort.
OpenPOWER on IntegriCloud