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

* [Bug mi/10611] MI vars with children in pretty-printer don't get printed correctly
  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 ` noamraph at gmail dot com
  2009-09-06 13:06 ` noamraph at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: noamraph at gmail dot com @ 2009-09-06 13:06 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From noamraph at gmail dot com  2009-09-06 13:06 -------
Created an attachment (id=4173)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4173&action=view)
File needed to recreate the bug


-- 


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

* [Bug mi/10611] MI vars with children in pretty-printer don't get printed correctly
  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
  3 siblings, 0 replies; 5+ messages in thread
From: noamraph at gmail dot com @ 2009-09-06 13:06 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From noamraph at gmail dot com  2009-09-06 13:06 -------
Created an attachment (id=4172)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4172&action=view)
File needed to recreate the bug


-- 


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

* [Bug mi/10611] MI vars with children in pretty-printer don't get printed correctly
  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
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2009-09-08 19:14 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2009-09-08 19:14 -------
-var-create x * x
^done,name="x",numchild="0",value="{...}",type="MyInt",thread-id="1",has_more="1"

Could you be more specific about what is wrong here?
I've looked at it a while and I think it is ok.

The has_more=1 is a signal to the MI consumer that this varobj has children.
You must use -var-list-children to fetch them.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware dot|tromey at redhat dot com
                   |org                         |
             Status|UNCONFIRMED                 |ASSIGNED


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

* [Bug mi/10611] MI vars with children in pretty-printer don't get printed correctly
  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
                   ` (2 preceding siblings ...)
  2009-09-08 19:14 ` tromey at redhat dot com
@ 2009-09-09  6:52 ` noamraph at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: noamraph at gmail dot com @ 2009-09-09  6:52 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From noamraph at gmail dot com  2009-09-09 06:52 -------
Oh, sorry. It's the same as bug 10616.
Too much debugging...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |INVALID


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).