diff options
author | Michael Sartain <mikesart@valvesoftware.com> | 2013-05-23 20:47:45 +0000 |
---|---|---|
committer | Michael Sartain <mikesart@valvesoftware.com> | 2013-05-23 20:47:45 +0000 |
commit | 17d5a0358d60922707fdab6ec9c3251ca44dd614 (patch) | |
tree | 03a2901d29c0253c3efd84c38cbfdc2858a25096 /source/Target | |
parent | b1077c4b43d0e64654f4f02f97be0b7e16920570 (diff) | |
download | lldb-17d5a0358d60922707fdab6ec9c3251ca44dd614.tar.gz |
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
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Target')
-rw-r--r-- | source/Target/StackFrame.cpp | 3 | ||||
-rw-r--r-- | source/Target/Thread.cpp | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/source/Target/StackFrame.cpp b/source/Target/StackFrame.cpp index a1f581e28..b0293be89 100644 --- a/source/Target/StackFrame.cpp +++ b/source/Target/StackFrame.cpp @@ -1282,13 +1282,12 @@ StackFrame::DumpUsingSettingsFormat (Stream *strm) GetSymbolContext(eSymbolContextEverything); ExecutionContext exe_ctx (shared_from_this()); - const char *end = NULL; StreamString s; const char *frame_format = NULL; Target *target = exe_ctx.GetTargetPtr(); if (target) frame_format = target->GetDebugger().GetFrameFormat(); - if (frame_format && Debugger::FormatPrompt (frame_format, &m_sc, &exe_ctx, NULL, s, &end)) + if (frame_format && Debugger::FormatPrompt (frame_format, &m_sc, &exe_ctx, NULL, s)) { strm->Write(s.GetData(), s.GetSize()); } diff --git a/source/Target/Thread.cpp b/source/Target/Thread.cpp index 850fc802c..781a1eece 100644 --- a/source/Target/Thread.cpp +++ b/source/Target/Thread.cpp @@ -1747,13 +1747,11 @@ Thread::DumpUsingSettingsFormat (Stream &strm, uint32_t frame_idx) const char *thread_format = exe_ctx.GetTargetRef().GetDebugger().GetThreadFormat(); assert (thread_format); - const char *end = NULL; Debugger::FormatPrompt (thread_format, frame_sp ? &frame_sc : NULL, &exe_ctx, NULL, - strm, - &end); + strm); } void |