This is the mail archive of the gdb-patches@sources.redhat.com 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] |
Hi Andrew,
I am using GDB(which came with cygwin) on windows. I have a structure a like this :
union example {
unsigned char a;
struct {
unsigned short b;
unsigned short c
} inner1;
struct{
unsigned short d;
unsigned short e;
struct {
unsigned short f;
unsigned shore g;
} inner_most;
}inner2;
}
When I used ptype command in GDB , it is not displaying inner most structures (inner_most) which doesn't have a tag name.
Is it a bug or it is a behavior of GDB.
(gdb) ptype structex
type = union example {
unsigned char a;
struct {
short unsigned int b;
short unsigned int c;
} inner1;
struct {
short unsigned int d;
short unsigned int e;
struct {...} inner_most;
} inner2;
}
Thanks & Regards
Jyothi
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |