This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Does today's gdb compile on Linux?
- To: "H . J . Lu" <hjl at valinux dot com>, GDB <gdb at sourceware dot cygnus dot com>
- Subject: Re: Does today's gdb compile on Linux?
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Tue, 18 Jan 2000 11:43:06 -0700
- References: <20000118100532.A7871@valinux.com>
On Jan 18, 10:05am, H . J . Lu wrote:
> I cannot get today's gdb in CVS to compile on Linux/ia32. It failed on
> i386-linux-nat.c:
>
> /work/gnu/import/gdb/gdb/i386-linux-nat.c: In function `supply_fpregset':
> /work/gnu/import/gdb/gdb/i386-linux-nat.c:215: request for member `st_space' in
> something not a structure or union
> /work/gnu/import/gdb/gdb/i386-linux-nat.c:217: request for member `cwd' in
> something not a structure or union
> /work/gnu/import/gdb/gdb/i386-linux-nat.c:218: request for member `swd' in
> something not a structure or union
> /work/gnu/import/gdb/gdb/i386-linux-nat.c:219: request for member `twd' in
> something not a structure or union
> /work/gnu/import/gdb/gdb/i386-linux-nat.c:220: request for member `fip' in
>
> Any ideas?
It looks to me like HAVE_PTRACE_GETXFPREGS is getting defined in config.h
when it shouldn't be.
The following comment may shed some light...
/* PTRACE_GETXFPREGS is a Cygnus invention, since we wrote our own
Linux kernel patch for SSE support. That patch may or may not
actually make it into the official distribution. If you find that
years have gone by since this code was added, and Linux isn't using
PTRACE_GETXFPREGS, that means that our patch didn't make it, and
you can delete this code. */
Do you have PTRACE_GETXFPREGS defined in your system header files
somewhere?
Kevin