This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] AC_SYS_LARGEFILE
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 3 Nov 2009 10:44:27 +0100
- Subject: [patch] AC_SYS_LARGEFILE
Hi,
other sourceware tree parts already contain AC_SYS_LARGEFILE affecting ABI
compatibility on 32bit hosts.
While I was grepping for `off_t' before found now there is now already an ABI
incompatiblity for `struct stat' also affected by AC_SYS_LARGEFILE which is
declared in gdb/rs6000-nat.c but filled through bfd_stat() in bfd/ . It does
corrupt the gdb stack. Non-gdb/ sourceware parts were patched by me before.
For gdb/ the patch is already being tested for some time
http://cvs.fedora.redhat.com/viewvc/rpms/gdb/devel/gdb-6.8-bz457187-largefile.patch?content-type=text%2Fplain&view=co
so submitting this patch also for gdb/ as a prerequisite to fix another
FSF GDB regression from me:
Recent separate debug file warning caused Debian regressions
http://sourceware.org/ml/gdb-patches/2009-11/msg00034.html
The patch was originally introduced to read elf64-i386 Linux kernel core dumps
on PAE systems (>4GB RAM). But the existing distro testcase is not applicable
for FSF GDB as it depends on GDB configure options not guaranteeable for FSF
GDB.
http://cvs.fedora.redhat.com/viewvc/rpms/gdb/devel/gdb-6.8-bz457187-largefile-test.patch?content-type=text%2Fplain&view=co
Regression tested {x86_64,x86_64-m32,i686}-fedora12-linux-gnu.
Thanks,
Jan
gdb/
2009-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* configure.ac: Call AC_SYS_LARGEFILE.
* config.in: Regenerate.
* configure: Regenerate.
--- gdb-6.8.50.20090909.orig/gdb/configure.ac 2009-09-09 20:08:04.000000000 +0200
+++ gdb-6.8.50.20090909/gdb/configure.ac 2009-09-09 20:11:04.000000000 +0200
@@ -28,6 +28,7 @@ AM_MAINTAINER_MODE
AC_PROG_CC
AC_USE_SYSTEM_EXTENSIONS
gl_EARLY
+AC_SYS_LARGEFILE
AM_PROG_CC_STDC
AC_CONFIG_AUX_DIR(..)