sys/procfs.h patch
Mark Kettenis
kettenis@wins.uva.nl
Sat Feb 12 14:17:00 GMT 2000
Hi All,
Andreas Jaeger asked me to post this bit here, partly to remember
Ulrich that this still needs to be fixed for the 2.1.3 release, and
partly to help out those of you that want to try the latest GDB from
CVS. Right now there are some problems that prevent GDB from
compiling with glibc 2.1.3-to-be (and unfortunately older GDB versions
are likely to suffer as well). The problems are caused by the
linuxthreads_db work (which in itself is off course a *very* good
thing). It looks as if since this work was integrated in GDB, it got
a bit out of sync with glibc. Anyway, you'll need the following
patches for GDB:
http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00047.html
http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00103.html
and you'll also need the patch to one of glibc's header file that is
included here.
Mark
2000-02-12 Mark Kettenis <kettenis@gnu.org>
* sysdeps/unix/sysv/linux/i386/sys/procfs.h: Make prgregset_t and
prfpregset_t typedefs for elf_gregset_t and elf_fpregset_t. These
represent the correct type to use for register sets in ELF core
dumps and ptrace requests.
Index: sysdeps/unix/sysv/linux/i386/sys/procfs.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/i386/sys/procfs.h,v
retrieving revision 1.1.4.1
diff -u -r1.1.4.1 procfs.h
--- sysdeps/unix/sysv/linux/i386/sys/procfs.h 1999/11/10 04:58:52 1.1.4.1
+++ sysdeps/unix/sysv/linux/i386/sys/procfs.h 2000/02/12 22:02:12
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -101,8 +101,8 @@
typedef void *psaddr_t;
/* Register sets. Linux has different names. */
-typedef gregset_t prgregset_t;
-typedef fpregset_t prfpregset_t;
+typedef elf_gregset_t prgregset_t;
+typedef elf_fpregset_t prfpregset_t;
/* We don't have any differences between processes and threads,
therefore habe only ine PID type. */
More information about the Libc-hacker
mailing list