[gvd-devel] GVD unable to parse some data structures

John Fredine jfredine@hotmail.com
Fri, 31 Jan 2003 09:45:29 -0800


I am having problems parsing some data structures using gvd.

GVD version: 1.2.5 (20020128)
gdb -v returns:
  GNU gdb Red Hat Linux (5.1-0.71)
  Copyright 2001 Free Software Foundation, Inc.
  GDB is free software, covered by the GNU General Public License, and you 
are
  welcome to change it and/or distribute copies of it under certain 
conditions.
  Type "show copying" to see the conditions.
  There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
  This GDB was configured as "i386-redhat-linux".

Test program:
----------
struct S {
    union {
        struct { int i; } ui1;
        struct { int i; } ui2;
    } u;
};

int main(int argc, char *argv[])
{
    struct S s;

    s.u.ui1.i = 1;
    return 0;
}
----------

When I compile this program and run it under gvd, I am unable to display the 
structure s.  GVD gives a message in the status window which reads "Could 
not parse type or value for s".  It prints fine using gdb however:

(gdb) print s
$8 = {u = {ui1 = {i = }, ui2 = {i = 1}}}

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus