Author: ki.stfu
Date: Fri Feb 13 12:36:48 2015
New Revision: 229131
URL: http://llvm.org/viewvc/llvm-project?rev=229131&view=rev
Log:
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)
```
Modified:
lldb/trunk/tools/lldb-mi/MIDriver.cpp
Modified: lldb/trunk/tools/lldb-mi/MIDriver.cpp
URL:
http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MIDriver.cpp?rev=229131&r1=229130&r2=229131&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MIDriver.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MIDriver.cpp Fri Feb 13 12:36:48 2015
@@ -1042,6 +1042,7 @@ CMIDriver::InterpretCommandThisDriver(co
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;
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits