This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
On Wed, Jan 19, 2000 at 07:45:28AM +0100, Jakub Jelinek wrote:
>
> I saw this as well. I think the right thing is to use i386 configure fragment
> for this, which will tell you which one of fpregset_t and elf_fpregset_t you
> want to use.
>
Did you mean to change gdb? How about this patch? BTW, we may have
the same gdb problem on all other arches.
--
H.J. Lu (hjl@gnu.org)
---
Wed Jan 19 12:15:50 2000 H.J. Lu <hjl@gnu.org>
* sysdeps/unix/sysv/linux/i386/sys/procfs.h: Don't include
<sys/ucontext.h>. Define greg_t, gregset_t, fpregset_t and
NGREG if _GDB_SOURCE is defined.
Index: sysdeps/unix/sysv/linux/i386/sys/procfs.h
===================================================================
RCS file: /work/cvs/gnu/glibc-2.1/sysdeps/unix/sysv/linux/i386/sys/procfs.h,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 procfs.h
--- sysdeps/unix/sysv/linux/i386/sys/procfs.h 1999/11/27 18:42:39 1.1.1.2
+++ sysdeps/unix/sysv/linux/i386/sys/procfs.h 2000/01/19 20:15:45
@@ -27,7 +27,6 @@
#include <signal.h>
#include <sys/time.h>
#include <sys/types.h>
-#include <sys/ucontext.h>
#include <sys/user.h>
#include <sys/elf.h>
@@ -40,6 +39,15 @@ struct elf_siginfo
int si_errno; /* Errno. */
};
+#ifdef _GDB_SOURCE
+/* They are used by gdb. We cannot use the ones in <sys/ucontext.h>
+ since they are different. It is too bad the same things are used
+ for different things. But it is hard to change now. */
+typedef elf_greg_t greg_t;
+typedef elf_gregset_t gregset_t;
+typedef elf_fpregset_t fpregset_t;
+#define NGREG ELF_NGREG
+#endif
/* Definitions to generate Intel SVR4-like core files. These mostly
have the same names as the SVR4 types with "elf_" tacked on the
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |