[Lldb-commits] [PATCH] D12634: Fix -data-evaluate-expression for array.
Hafiz Abid Qadeer via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 4 08:05:34 PDT 2015
abidh created this revision.
abidh added a reviewer: ki.stfu.
abidh added a subscriber: lldb-commits.
For an array declared like "blk[2][3]", this command was showing:
-data-evaluate-expression blk
^done,value="{[0] = [3], [1] = [3]}"
After this fix, it shows:
-data-evaluate-expression blk
^done,value="{[0] = {[0] = 1, [1] = 2, [2] = 3}, [1] = {[0] = 4, [1] = 5, [2] = 6}}"
The code to do the right thing was already available and used by other commands.
So I have just used that and removed the half-baked previous implementation.
http://reviews.llvm.org/D12634
Files:
test/tools/lldb-mi/variable/TestMiVar.py
test/tools/lldb-mi/variable/main.cpp
tools/lldb-mi/MICmdCmdData.cpp
tools/lldb-mi/MICmdCmdData.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12634.34031.patch
Type: text/x-patch
Size: 4816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150904/0c2cfd41/attachment.bin>
More information about the lldb-commits
mailing list