summaryrefslogtreecommitdiffstats
path: root/lldb/tools/driver/Driver.cpp
diff options
context:
space:
mode:
authorMichael Sartain <mikesart@valvesoftware.com>2013-05-23 20:47:45 +0000
committerMichael Sartain <mikesart@valvesoftware.com>2013-05-23 20:47:45 +0000
commitc3ce7f27403c5b404fe854e5c9063fd6a47ce261 (patch)
treeacd70150580439bdef8b5bd6b298378171ca1778 /lldb/tools/driver/Driver.cpp
parent75ef31f607eb8bc0ccf16dd45f658973e69dcde4 (diff)
downloadbcm5719-llvm-c3ce7f27403c5b404fe854e5c9063fd6a47ce261.tar.gz
bcm5719-llvm-c3ce7f27403c5b404fe854e5c9063fd6a47ce261.zip
Add ${ansi.XX} parsing to lldb prompt, use-color setting, and -no-use-colors command line options.
settings set use-color [false|true] settings set prompt "${ansi.bold}${ansi.fg.green}(lldb)${ansi.normal} " also "--no-use-colors" on the command prompt llvm-svn: 182609
Diffstat (limited to 'lldb/tools/driver/Driver.cpp')
-rw-r--r--lldb/tools/driver/Driver.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp
index 1339babe1d5..875adc22283 100644
--- a/lldb/tools/driver/Driver.cpp
+++ b/lldb/tools/driver/Driver.cpp
@@ -105,7 +105,9 @@ static OptionDefinition g_options[] =
"Tells the debugger to open source files using the host's \"external editor\" mechanism." },
{ LLDB_3_TO_5, false, "no-lldbinit" , 'x', no_argument , 0, eArgTypeNone,
"Do not automatically parse any '.lldbinit' files." },
- { LLDB_OPT_SET_6, true , "python-path" , 'P', no_argument , 0, eArgTypeNone,
+ { LLDB_3_TO_5, false, "no-use-colors" , 'o', no_argument , 0, eArgTypeNone,
+ "Do not use colors." },
+ { LLDB_OPT_SET_6, true , "python-path" , 'P', no_argument , 0, eArgTypeNone,
"Prints out the path to the lldb.py file for this version of lldb." },
{ 0, false, NULL , 0 , 0 , 0, eArgTypeNone, NULL }
};
@@ -621,6 +623,10 @@ Driver::ParseArgs (int argc, const char *argv[], FILE *out_fh, bool &exit)
m_debugger.SkipAppInitFiles (true);
break;
+ case 'o':
+ m_debugger.SetUseColor (false);
+ break;
+
case 'f':
{
SBFileSpec file(optarg);
OpenPOWER on IntegriCloud