[Lldb-commits] [PATCH] lldb-mi: print the prompt after commands

Ilia K ki.stfu at gmail.com
Tue Dec 16 04:43:00 PST 2014


Hello,

This patch contains the fix of prompt's printing after commands in MI mode.

Previously the prompt was printed in MICmnStreamStdin::MonitorStdin before
::fgets() was called what was wrong because lldb-mi has separate thread to
read user's input. Therefore prompt was printed after each user's input
even if command hadn't been executed. In this patch prompt is printed after
the command is executed.
Also, early the prompt was declared in different places. I have refactored
this code and have moved it to CMICmnStreamStdout::WritePrompt function.
And finally I added checks for my improvements in TestMiBreakpoint test.

Thanks,
Ilia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141216/59bd1419/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lldbmi_fix_prompt_gdb.v7.patch
Type: application/octet-stream
Size: 15754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141216/59bd1419/attachment.obj>


More information about the lldb-commits mailing list