public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/10611] New: MI vars with children in pretty-printer don't get printed correctly
@ 2009-09-06 13:05 noamraph at gmail dot com
  2009-09-06 13:06 ` [Bug mi/10611] " noamraph at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: noamraph at gmail dot com @ 2009-09-06 13:05 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-09  6:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-06 13:05 [Bug mi/10611] New: MI vars with children in pretty-printer don't get printed correctly noamraph at gmail dot com
2009-09-06 13:06 ` [Bug mi/10611] " noamraph at gmail dot com
2009-09-06 13:06 ` noamraph at gmail dot com
2009-09-08 19:14 ` tromey at redhat dot com
2009-09-09  6:52 ` noamraph at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).