Re: gdb support for unnamed union/structure fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux