This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Small fix for i386-linux-nat.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH] Small fix for i386-linux-nat.c
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Mon, 28 Aug 2000 23:58:59 +0200
FYI, I committed the attached patch. Should fix some problems with
debugging multi-threaded programs on SSE-aware systems.
Mark
2000-08-27 Mark Kettenis <kettenis@gnu.org>
* i386-linux-nat.c (fetch_inferior_registers): Move call to
dummy_sse_values ...
(supply_fpregset): ... here.
Index: i386-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-linux-nat.c,v
retrieving revision 1.15
diff -u -p -r1.15 i386-linux-nat.c
--- i386-linux-nat.c 2000/08/11 19:45:21 1.15
+++ i386-linux-nat.c 2000/08/28 21:38:45
@@ -41,6 +41,9 @@
/* Prototypes for i387_supply_fsave etc. */
#include "i387-nat.h"
+/* Prototypes for local functions. */
+static void dummy_sse_values (void);
+
/* On Linux, threads are implemented as pseudo-processes, in which
case we may be tracing more than one process at a time. In that
case, inferior_pid will contain the main process ID and the
@@ -358,6 +361,7 @@ void
supply_fpregset (elf_fpregset_t *fpregsetp)
{
i387_supply_fsave ((char *) fpregsetp);
+ dummy_sse_values ();
}
/* Fill register REGNO (if it is a floating-point register) in
@@ -574,7 +578,6 @@ fetch_inferior_registers (int regno)
gdbarch. Until then, this will at least make things work
plausibly. */
fetch_fpregs (tid);
- dummy_sse_values ();
return;
}