This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] export gdb_fpxregset_t, fill_fpxregset/supply_fpxregset
- From: Michael Snyder <msnyder at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 9 Jan 2002 12:45:16 -0800
- Subject: [PATCH] export gdb_fpxregset_t, fill_fpxregset/supply_fpxregset
Fixes an oversight in my generate-core-file check-in.
2002-01-09 Michael Snyder <msnyder@redhat.com>
* gregset.h (gdb_fpxregset_t): Define.
(supply_fpxregset): Prototype.
(fill_fpxregset): Prototype.
Index: gregset.h
===================================================================
RCS file: /cvs/src/src/gdb/gregset.h,v
retrieving revision 1.2
diff -c -3 -p -r1.2 gregset.h
*** gregset.h 2000/08/27 21:37:16 1.2
--- gregset.h 2002/01/09 20:46:34
***************
*** 1,5 ****
/* Interface for functions using gregset and fpregset types.
! Copyright 2000 Free Software Foundation, Inc.
This file is part of GDB.
--- 1,5 ----
/* Interface for functions using gregset and fpregset types.
! Copyright 2000, 2002 Free Software Foundation, Inc.
This file is part of GDB.
*************** extern void supply_fpregset (gdb_fpregse
*** 51,55 ****
--- 51,69 ----
extern void fill_gregset (gdb_gregset_t *gregs, int regno);
extern void fill_fpregset (gdb_fpregset_t *fpregs, int regno);
+
+ #ifdef HAVE_PTRACE_GETFPXREGS
+ /* Linux/i386: Copy register values between GDB's internal register cache
+ and the i386 extended floating point registers. */
+
+ #ifndef GDB_FPXREGSET_T
+ #define GDB_FPXREGSET_T elf_fpxregset_t
+ #endif
+
+ typedef GDB_FPXREGSET_T gdb_fpxregset_t;
+
+ extern void supply_fpxregset (gdb_fpxregset_t *fpxregs);
+ extern void fill_fpxregset (gdb_fpxregset_t *fpxregs, int regno);
+ #endif
#endif