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

Re: Does today's gdb compile on Linux?


On Tue, Jan 18, 2000 at 11:43:06AM -0700, Kevin Buettner wrote:
> 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.

I don't think so.

# grep HAVE_PTRACE_GETXFPREGS config.h
/* #undef HAVE_PTRACE_GETXFPREGS */

> 
> 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?
> 

No.

-- 
H.J. Lu (hjl@gnu.org)

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