This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Add support for PPC Altivec registers in gcore
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: cseo at linux dot vnet dot ibm dot com (Carlos Eduardo Seo)
- Cc: gdb-patches at sourceware dot org (GDB Patches Mailing List)
- Date: Tue, 25 Mar 2008 21:12:48 +0100 (CET)
- Subject: 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