gdb support for unnamed union/structure fields
Amit Choudhary
amit2030@yahoo.com
Sun Oct 8 02:19:00 GMT 2006
>
> typedef union {
> int a;
> struct {
> int b;
> int c;
> };
> int d;
> } foo;
>
> I see that gdb 6.4 is also released, does it support
> displaying unnamed union/stucture fields.
>
This is a gdb question assuming that you have compiled with the -g option. In your program you
must be defining a variable like "foo xyz;". Now, if you do "p xyz" in gdb, it will show the
fields of xyz and their values.
Regards,
Amit Choudhary
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Gcc-help
mailing list