From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25497 invoked by alias); 22 Dec 2011 15:11:30 -0000 Received: (qmail 25471 invoked by uid 22791); 22 Dec 2011 15:11:29 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Dec 2011 15:10:37 +0000 From: "dodji at seketeli dot org" To: gdb-prs@sourceware.org Subject: [Bug mi/13149] Some pretty printers don't work in MI mode Date: Thu, 22 Dec 2011 15:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dodji at seketeli dot org X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q4/txt/msg00562.txt.bz2 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::allocator >, std::allocator, std::allocator > > >",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="" 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.