This is the mail archive of the
mailing list for the GDB project.
Re: gdb in CVS is totally broken on Linux/i386
> The register fetch/store codes in i386-linux-nat.c are mostly bogus.
> You cannot do
> fpregset_t buf;
> ptrace (PTRACE_GETFPREGS, inferior_pid, 0, (int) &buf);
> since fpregset_t is not what the kernel expects. I got "segmentation
> fault" even for "info reg". Jim, could you please take a look at
> i386lnx-nat.c in my gdb 126.96.36.199 to see what the working one looks
Hmm. It looks to me like `fpregset_t' has exactly the layout used by
the kernel. Both of them exactly match the format used by the
Pentium's own FSAVE/FRSTOR functions.
This shouldn't affect the ability to call functions, though --- that
only involves the integer registers. Is there a problem there?