This is the mail archive of the gdb-patches@sourceware.org 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]

Re: [RFC] Add support for PPC Altivec registers in gcore


Carlos Eduardo Seo wrote:
> Ulrich Weigand wrote:
> > I'd prefer *not* to include a new header file here; a forward
> > declaration of the struct should be enough:
> >    struct core_regset_section;
> 
> A forward declaration here doesn't seem to work.

What exactly seems to be the problem?  The following
code should be valid C, and compiles fine with GCC:

struct core_regset_section;
extern struct core_regset_section default_regset_sections[];

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]