This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [OBJDUMP debugging] inlined enum
- From: Nick Clifton <nickc at redhat dot com>
- To: Giovanni Visciano <giovanni_visciano at yahoo dot it>
- Cc: binutils at sourceware dot org
- Date: Fri, 04 Jan 2008 15:15:37 +0000
- Subject: Re: [OBJDUMP debugging] inlined enum
- References: <961259.72462.qm@web25711.mail.ukl.yahoo.com>
Hi Giovanni,
I'm looking at --debugging* options of objdump.
Which version are you using ?
For some object I'm debugging, I can see a strange debugging type report:
Example:
typedef enum { E_A, E_B, E_C } ENUM_E;
typedef struct { ENUM_E e; } STRUCT_S;
debugging report:
typedef struct { enum { E_A, E_B, E_C } e; } STRUCT_S;
For which target is this ?
I tried the above test with an i686-pc-cygwin toolchain built from today's
mainline GCC sources and mainline binutils sources and I see this output:
typedef enum { E_A, E_B, E_C } ENUM_E;
typedef struct %anon1 { /* size 4 */
ENUM_E e; /* bitsize 32, bitpos 0 */
} STRUCT_S;
Cheers
Nick