[lldb-dev] [Bug 28026] New: LLDB-MI doesn't properly output CLI command response using console-stream-output
via lldb-dev
lldb-dev at lists.llvm.org
Mon Jun 6 12:17:59 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28026
Bug ID: 28026
Summary: LLDB-MI doesn't properly output CLI command response
using console-stream-output
Product: lldb
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: aetf at unlimitedcodeworks.xyz
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
According to the MI specification [1], the response for CLI commands should be
output as a console-stream-output record. Right now they are just dumped out
without any stream prefix and quotation.
[1]
https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Stream-Records.html#GDB_002fMI-Stream-Records
Step to reproduce:
1. launch using command 'lldb-mi echo'
2. set set target.run-args 1 2 3
3. set show target.run-args
Result output:
(gdb)
-file-exec-and-symbols "echo"
^done
(gdb)
=library-loaded,id="/usr/bin/echo",target-name="/usr/bin/echo",host-name="/usr/bin/echo",symbols-loaded="0",loaded_addr="-",size="0"
set set target.run-args 1 2 3
^done
(gdb)
set show target.run-args
target.run-args (array of strings) =
[0]: "1"
[1]: "2"
[2]: "3"
^done
(gdb)
Expected output:
(gdb)
-file-exec-and-symbols "echo"
^done
(gdb)
=library-loaded,id="/usr/bin/echo",target-name="/usr/bin/echo",host-name="/usr/bin/echo",symbols-loaded="0",loaded_addr="-",size="0"
set set target.run-args 1 2 3
^done
(gdb)
set show target.run-args
~ "target.run-args (array of strings) =\n"
~ " [0]: \"1\"\n"
~ " [1]: \"2\"\n"
~ " [2]: \"3\"\n"
^done
(gdb)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160606/b8af49ef/attachment.html>
More information about the lldb-dev
mailing list