gdb in CVS is totally broken on Linux/i386
H.J. Lu
hjl@lucon.org
Mon Nov 15 11:14:00 GMT 1999
>
>
> > > The register fetch/store codes in i386-linux-nat.c are mostly bogus.
> >
> > Oooops. Egg on my face. It was my fault. Here is a small patch.
>
> Sorry, I should read ahead.
>
> What is happening inside the `if (GETXFPREGS_SUPPLIES (regno))'
> clause? Why isn't fetch_xfpregs providing the information accurately?
>
GETFPREGS_SUPPLIES is defined and never used. Should it be a little
faster to check GETFPREGS_SUPPLIES first to get the normal fp registers?
> If you are running a very bleeding-edge kernel, Doug Ledford may have
> changed the format of `struct i387_hard_fxsave'. That would
> definitely give you garbage values for your FP registers. My changes
> are only meant to work with the kernel patches posted on
> sourceware.cygnus.com.
I am using Doug's P3 patch. Apparently he didn't handle
i387_hard_fxsave right between kernel and user space. I
have sent him detailed bug report. I hope he will fix it
soon.
H.J.
More information about the Gdb
mailing list