This is an archive of the discontinued LLVM Phabricator instance.

Fix bug 23326.
AbandonedPublic

Authored by abidh on May 18 2015, 9:39 AM.

Details

Reviewers
ki.stfu
Summary

The problem is described in the following link:
https://llvm.org/bugs/show_bug.cgi?id=23326

Basically, there are 2 issues.

  1. When --simple-value is ued, type should be printed too.
  2. 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.

Diff Detail

Event Timeline

abidh updated this revision to Diff 25976.May 18 2015, 9:39 AM
abidh retitled this revision from to Fix bug 23326..
abidh updated this object.
abidh edited the test plan for this revision. (Show Details)
abidh added a reviewer: ki.stfu.
abidh added a subscriber: Unknown Object (MLST).
ki.stfu edited edge metadata.May 18 2015, 11:20 AM

The #1 looks good to me, but I disagree about #2. See inline comments.

test/tools/lldb-mi/stack/TestMiStack.py
39–41

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=[]}]

@abidh,

AFAIK, an another patch has been submitted: http://reviews.llvm.org/D10106. Is this patch still necessary?

abidh abandoned this revision.Jun 22 2015, 1:54 AM

@abidh,

AFAIK, an another patch has been submitted: http://reviews.llvm.org/D10106. Is this patch still necessary?

Yes that one has been committed and I have closed the defect. Closing this revision.