public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/10615] Nested structs don't get updated in MI
2009-09-08 7:33 [Bug mi/10615] New: Nested structs don't get updated in MI noamraph at gmail dot com
@ 2009-09-08 7:33 ` noamraph at gmail dot com
2009-09-08 7:34 ` noamraph at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: noamraph at gmail dot com @ 2009-09-08 7:33 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From noamraph at gmail dot com 2009-09-08 07:33 -------
Created an attachment (id=4178)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4178&action=view)
File needed to recreate the bug
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10615
------- 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/10615] New: Nested structs don't get updated in MI
@ 2009-09-08 7:33 noamraph at gmail dot com
2009-09-08 7:33 ` [Bug mi/10615] " noamraph at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: noamraph at gmail dot com @ 2009-09-08 7:33 UTC (permalink / raw)
To: gdb-prs
Hello,
Thankfully, Tom fixed bug 10584. However, it seems that members of structs which
are members of pretty-printed variables still don't get updated.
To recreate:
Download bug.c, bug.py.
> gcc -g -o bug bug.c
> gdb --int mi2 --nx bug
> -enable-pretty-printing
> python execfile('bug.py')
> b main
> r
# Initialize m to {{0},0}
> n
# Do what a standard UI is expected to do to print the m variable
# Its structure is: { {int a; int b;} s; int x; }
> -var-create m * m
> -var-list-children m
> -var-evaluate-expression m.s
> -var-list-children m.s
> -var-evaluate-expression m.s.a
> -var-evaluate-expression m.s.b
> -var-evaluate-expression m.x
# Modify m.s.a
> n
# Check if something was updated
> -var-update *
^done,changelist=[]
# Oops.
Thanks,
Noam
--
Summary: Nested structs don't get updated in MI
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,tromey at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10615
------- 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/10615] Nested structs don't get updated in MI
2009-09-08 7:33 [Bug mi/10615] New: Nested structs don't get updated in MI noamraph at gmail dot com
2009-09-08 7:33 ` [Bug mi/10615] " noamraph at gmail dot com
@ 2009-09-08 7:34 ` noamraph at gmail dot com
2009-09-08 20:01 ` tromey at redhat dot com
2009-09-09 16:08 ` tromey at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: noamraph at gmail dot com @ 2009-09-08 7:34 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From noamraph at gmail dot com 2009-09-08 07:34 -------
Created an attachment (id=4179)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4179&action=view)
File needed to recreate the bug
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10615
------- 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/10615] Nested structs don't get updated in MI
2009-09-08 7:33 [Bug mi/10615] New: Nested structs don't get updated in MI noamraph at gmail dot com
2009-09-08 7:33 ` [Bug mi/10615] " noamraph at gmail dot com
2009-09-08 7:34 ` noamraph at gmail dot com
@ 2009-09-08 20:01 ` tromey at redhat dot com
2009-09-09 16:08 ` tromey at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2009-09-08 20:01 UTC (permalink / raw)
To: gdb-prs
--
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=10615
------- 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/10615] Nested structs don't get updated in MI
2009-09-08 7:33 [Bug mi/10615] New: Nested structs don't get updated in MI noamraph at gmail dot com
` (2 preceding siblings ...)
2009-09-08 20:01 ` tromey at redhat dot com
@ 2009-09-09 16:08 ` tromey at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2009-09-09 16:08 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2009-09-09 16:08 -------
Thanks for the report & the simple test case.
I've checked in a regression test and a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10615
------- 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 16:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08 7:33 [Bug mi/10615] New: Nested structs don't get updated in MI noamraph at gmail dot com
2009-09-08 7:33 ` [Bug mi/10615] " noamraph at gmail dot com
2009-09-08 7:34 ` noamraph at gmail dot com
2009-09-08 20:01 ` tromey at redhat dot com
2009-09-09 16:08 ` tromey at redhat 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).