The problem is described in the following link:
https://llvm.org/bugs/show_bug.cgi?id=23326
Basically, there are 2 issues.
- When --simple-value is ued, type should be printed too.
- In list, you can not mix tuple with key=value pair.
The 2nd thing is fixes by always having things in tuple even if it is just
the name. The other option would be to use key=value pair when we just have
name and tuple when we have any other entry (value, arg, type). But this
will make the function more complicated. Current solution looks simple.
I think it shouldn't be changed according to doc here. It should be like the following:
-stack-list-arguments 0 ^done, stack-args=[ frame={level="0",args=[]}, frame={level="1",args=[name="strarg"]}, frame={level="2",args=[name="intarg",name="strarg"]}, frame={level="3",args=[name="intarg",name="strarg",name="fltarg"]}, frame={level="4",args=[]}]