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?
On Jan 18, 10:47am, H . J . Lu wrote:
> 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 */
My mistake. I was looking at the wrong section of code.
i386-linux-nat.c compiles okay for me.
On my system (a RH6.0 box with few upgrades), I see the following in
<sys/procfs.h>:
typedef elf_fpregset_t fpregset_t;
In <sys/elf.h>, I see:
typedef struct user_fpregs_struct elf_fpregset_t;
And in <sys/user.h>, I see
struct user_fpregs_struct
{
long cwd;
long swd;
long twd;
long fip;
long fcs;
long foo;
long fos;
long st_space [20];
};
Is your system set up differently?
Kevin