summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-02-13 18:36:48 +0000
committerIlia K <ki.stfu@gmail.com>2015-02-13 18:36:48 +0000
commita4897fe79c9db88d9eaf0bf787a64c36ff2a609e (patch)
treee8b9badc4d4cc6cef0047af09b65f1d707e9fdf4 /lldb
parent6a582f9fc8c142bbc3652e2fb5b6d22b41795b96 (diff)
downloadbcm5719-llvm-a4897fe79c9db88d9eaf0bf787a64c36ff2a609e.tar.gz
bcm5719-llvm-a4897fe79c9db88d9eaf0bf787a64c36ff2a609e.zip
Add missing prompt when command doesn't exist (MI)
It fixes the following example: ``` $ bin/lldb-mi --interpreter (gdb) -not-found ^error,msg="Driver. Received command '-not-found'. It was not handled. Command 'not-found' not in Command Factory" -not-found ^error,msg="Driver. Received command '-not-found'. It was not handled. Command 'not-found' not in Command Factory" ``` After the fix it looks like: ``` $ bin/lldb-mi --interpreter -not-found ^error,msg="Driver. Received command '-not-found'. It was not handled. Command 'not-found' not in Command Factory" (gdb) -not-dounf ^error,msg="Driver. Received command '-not-dounf'. It was not handled. Command 'not-dounf' not in Command Factory" (gdb) ``` llvm-svn: 229131
Diffstat (limited to 'lldb')
-rw-r--r--lldb/tools/lldb-mi/MIDriver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/tools/lldb-mi/MIDriver.cpp b/lldb/tools/lldb-mi/MIDriver.cpp
index 5628e344952..8cd115301ad 100644
--- a/lldb/tools/lldb-mi/MIDriver.cpp
+++ b/lldb/tools/lldb-mi/MIDriver.cpp
@@ -1042,6 +1042,7 @@ CMIDriver::InterpretCommandThisDriver(const CMIUtilString &vTextLine, bool &vwbC
const CMICmnMIValueResult valueResult("msg", vconst);
const CMICmnMIResultRecord miResultRecord(cmdData.strMiCmdToken, CMICmnMIResultRecord::eResultClass_Error, valueResult);
m_rStdOut.WriteMIResponse(miResultRecord.GetString());
+ m_rStdOut.WriteMIResponse("(gdb)");
// Proceed to wait for or execute next command
return MIstatus::success;
OpenPOWER on IntegriCloud