[Lldb-commits] [lldb] r201521 - Fix the LLDB prompt for older Editline versions, specifically running on Ubuntu 12.04
Deepak Panickal
deepak at codeplay.com
Mon Feb 17 09:42:25 PST 2014
Author: panickal
Date: Mon Feb 17 11:42:25 2014
New Revision: 201521
URL: http://llvm.org/viewvc/llvm-project?rev=201521&view=rev
Log:
Fix the LLDB prompt for older Editline versions, specifically running on Ubuntu 12.04
Modified:
lldb/trunk/source/Host/common/Editline.cpp
Modified: lldb/trunk/source/Host/common/Editline.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Editline.cpp?rev=201521&r1=201520&r2=201521&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Editline.cpp (original)
+++ lldb/trunk/source/Host/common/Editline.cpp Mon Feb 17 11:42:25 2014
@@ -67,8 +67,13 @@ Editline::Editline (const char *prog,
assert (m_editline);
::el_set (m_editline, EL_CLIENTDATA, this);
+
+ // only defined for newer versions of editline
#ifdef EL_PROMPT_ESC
::el_set (m_editline, EL_PROMPT_ESC, GetPromptCallback, k_prompt_escape_char);
+#else
+ // fall back on old prompt setting code
+ ::el_set (m_editline, EL_PROMPT, GetPromptCallback);
#endif
::el_set (m_editline, EL_EDITOR, "emacs");
if (m_history)
More information about the lldb-commits
mailing list