[GCC-XML] Bug, or is it me?

Brad King brad.king at kitware.com
Mon Jul 3 13:04:56 EDT 2006


Tony Whitley wrote:
> Apologies, I'm an occasional user of gccxml rather than an expert and I
> don't understand what's happening here.
> 
> 
> I have a struct which has a pointer to another struct, like this:
> 
> typedef struct
> {
>  int one;
> } referred_struct;
> 
> typedef struct
> {
>  int two;
> } pointed_to_struct;
> 
> typedef struct
> {
>  referred_struct    referred;
>  pointed_to_struct *pointer_to_struct;
> } referring_struct;
> 
> referring_struct all;
> 
> 
> 
> If I run gccxml with
>    -fxml-start=all
> I get output (below) that includes a reference to "pointed_to_struct" 
> but none of its contents: "one" is present in the XML but not "two"

When using the -fxml-start option the dump includes everything needed to 
describe the interface of the requested name.  Since a pointer can be 
passed without the struct definition it is not dumped.

-Brad


More information about the gccxml mailing list