From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20951 invoked by alias); 6 Sep 2009 13:05:46 -0000 Received: (qmail 20937 invoked by uid 48); 6 Sep 2009 13:05:46 -0000 Date: Sun, 06 Sep 2009 13:05:00 -0000 From: "noamraph at gmail dot com" To: gdb-prs@sourceware.org Message-ID: <20090906130545.10611.noamraph@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug mi/10611] New: MI vars with children in pretty-printer don't get printed correctly X-Bugzilla-Reason: CC 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: 2009-q3/txt/msg00214.txt.bz2 Hello, I pulled the most recent version of the archer-tromey-python branch. Bug 10584 was indeed fixed. However, if I add children to the pretty-printer, the MI value gets totally corrupted: p x $1 = MyInt: 3 = { # I stripped things. [0] = 1, [1] = 2, [2] = 3 } ^done (gdb) -var-create x * x ^done,name="x",numchild="0",value="{...}",type="MyInt",thread-id="1",has_more="1" (The pretty printer in bug.py just adds constant three children, as you can see.) To recreate, download bug.c and bug.py. Compile bug.c. Run: gdb --int mi2 a.out -enable-pretty-printing python execfile('bug.py') b main r n -var-create x * x And you get the response above. Thanks, Noam -- Summary: MI vars with children in pretty-printer don't get printed correctly Product: gdb Version: archer Status: UNCONFIRMED Severity: normal Priority: P2 Component: mi AssignedTo: unassigned at sourceware dot org ReportedBy: noamraph at gmail dot com CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10611 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.