This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: gdb in CVS is totally broken on Linux/i386
On Fri, Nov 12, 1999 at 02:38:45PM -0800, H . J . Lu wrote:
>
> 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.
H.J.
---
Index: i386-linux-nat.c
===================================================================
RCS file: /work/cvs/gnu/gdb/gdb/i386-linux-nat.c,v
retrieving revision 1.1.1.3
diff -u -p -r1.1.1.3 i386-linux-nat.c
--- i386-linux-nat.c 1999/11/12 20:16:57 1.1.1.3
+++ i386-linux-nat.c 1999/11/12 22:07:08
@@ -539,6 +562,12 @@ fetch_inferior_registers (int regno)
return;
}
+ if (GETFPREGS_SUPPLIES (regno))
+ {
+ fetch_fpregs ();
+ return;
+ }
+
if (GETXFPREGS_SUPPLIES (regno))
{
if (fetch_xfpregs ())