Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] AC_SYS_LARGEFILE
@ 2009-11-03  9:44 Jan Kratochvil
  2009-11-03 14:00 ` Joel Brobecker
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kratochvil @ 2009-11-03  9:44 UTC (permalink / raw)
  To: gdb-patches

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(..)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-11  5:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03  9:44 [patch] AC_SYS_LARGEFILE Jan Kratochvil
2009-11-03 14:00 ` Joel Brobecker
2009-11-03 16:55   ` Tom Tromey
2009-11-03 17:07     ` Tom Tromey
2009-11-11  5:09     ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox