[wip:binutils] Large corefile support

Andi Kleen ak@suse.de
Sun Jan 18 12:42:00 GMT 2004


On Sat, 17 Jan 2004 07:55:56 +0100
Andreas Jaeger <aj@suse.de> wrote:

> Andrew Cagney <ac131313@redhat.com> writes:
> 
> > Hello,
> >
> > On the i386, GDB has problems when a corefile is >2gb.  The problems
> > are directly attributable to BFD's use of:
> > 	typedef long file_ptr;
> > and
> > 	fseek (FILE *stream, long int offset, int whence)
> > The attached, when combined with a BFD/GDB configured / built with
> > --enable-64-bit-bfd, lets GDB handle corefiles >2gb, per this test:
> > http://sources.redhat.com/ml/gdb-patches/2004-01/msg00358.html
> 
> Does this work with the Linux kernel?  I heard recently that the Linux
> kernel does not create core files larger than 2 GB :-(

No, it doesn't. It would be easy to enable though once user space can 
process such large files correctly.

-Andi



More information about the Binutils mailing list