This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/10615] New: Nested structs don't get updated in MI


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]