This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/13149] Some pretty printers don't work in MI mode


http://sourceware.org/bugzilla/show_bug.cgi?id=13149

--- Comment #4 from dodji at seketeli dot org 2011-12-22 15:10:33 UTC ---
So I finally tried and the same problem remains.  I think I haven't
explained the problem well in the first place.

Please look at the creation of the problematic vector:

    -var-create - * v
   
^done,name="var2",numchild="0",value="{...}",type="std::vector<std::basic_string<char,
    std::char_traits<char>, std::allocator<char> >,
    std::allocator<std::basic_string<char, std::char_traits<char>,
    std::allocator<char> > >
    >",thread-id="1",displayhint="array",dynamic="1",has_more="1"
    (gdb)

Look more particularly at the numchild="0" part.  When the MI client
sees that, it follows that it won't propose to the user to unfold the
tree node representing the vector 'v', as that means the node has no
children to unfold.  And as the -var-list-children is emitted only
when the user clicks to unfold the node, that command is not issued.

So that nodes shows a content of "{...}", with no chance for the user
to expand it.

So I think fixing the numchild="0" part to make it be
numchild="<actual-num-children>" instead would fix this.

And yes passing --all-value to -var-list-children helps, as you
suggested.  But the above problem remains.

Thank you.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]