This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/10611] New: MI vars with children in pretty-printer don't get printed correctly
- From: "noamraph at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 6 Sep 2009 13:05:46 -0000
- Subject: [Bug mi/10611] New: MI vars with children in pretty-printer don't get printed correctly
- Reply-to: sourceware-bugzilla at sourceware dot org
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.