summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-02-08 13:25:47 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-02-08 13:25:47 +0000
commit54e7a77690f6a49c244f76a992b7396da30e87f5 (patch)
treeaf5caba340626af515e72738109759f405cba9c3
parent107050158612f7367dfff375245e415946d91a49 (diff)
downloadbcm5719-llvm-54e7a77690f6a49c244f76a992b7396da30e87f5.tar.gz
bcm5719-llvm-54e7a77690f6a49c244f76a992b7396da30e87f5.zip
Only set EL_PROMPT_ESC when existing
llvm-svn: 201023
-rw-r--r--lldb/source/Host/common/Editline.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp
index 7e6a2f55e37..f32b2de9c72 100644
--- a/lldb/source/Host/common/Editline.cpp
+++ b/lldb/source/Host/common/Editline.cpp
@@ -67,7 +67,9 @@ Editline::Editline (const char *prog, // prog can't be NULL
assert (m_editline);
::el_set (m_editline, EL_CLIENTDATA, this);
+#idef EL_PROMPT_ESC
::el_set (m_editline, EL_PROMPT_ESC, GetPromptCallback, k_prompt_escape_char);
+#endif
::el_set (m_editline, EL_EDITOR, "emacs");
if (m_history)
{
OpenPOWER on IntegriCloud