This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb and truncated core files
- From: Kip Macy <kmacy at fsmware dot com>
- To: David Carlton <carlton at kealia dot com>
- Cc: gdb <gdb at sources dot redhat dot com>
- Date: Wed, 17 Mar 2004 15:02:45 -0800 (PST)
- Subject: Re: gdb and truncated core files
- References: <yf2ad2fxjqk.fsf@hawaii.kealia.com>
It has been a while since I touched core dump. If I recall correctly
the elf program headers should tell you the offsets and sizes of all the
sections. The last (offset + size) should be the expected size of the
core.
As for GDB, based on my experience, I don't think it always gets it
right.
-Kip
On Wed, 17 Mar 2004, David Carlton wrote:
> Is there any way for GDB (on i686-pc-linux-gnu) to tell whether or not
> a core file has been truncated? We have a habit of generating
> truncated core files around here, and it would be nice if there were
> an easy way to tell whether or not a given core file is truncated.
>
> David Carlton
> carlton@kealia.com
>