patch for large corefile support on linux
Andrew Cagney
cagney@gnu.org
Tue Jul 6 14:27:00 GMT 2004
> Dear Patches,
> This is a simple patch that seems to allow debugging of >2gb
> corefiles.
>
> We've had problems dealing with large corefiles on Linux and I
> tried gdb 6.1 recently since it had some code in BFD to do
> lseek64 and stuff. I noticed all I had to do to get GDB dealing
> with them was to add O_LARGEFILE to the core file open. (We
> have previously patched our kernel to open the core file write
> with O_LARGEFILE as well, but this may be default in later
> kernels.) This is on a 32bit x86 platform.
>
> I doubt it will let >4gb corefiles work in gdb, as the elf32
> header is still being used AFIAK, but it helps. Also, large
> *program* files aren't covered, but that is less of an issue.
>
> Diff against 6.1 sources.
Draining the patch backlog for 6.2, I've checked this in. Thanks!
committed the attached,
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20040706/545551f9/attachment.ksh>
More information about the Gdb-patches
mailing list