This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb and truncated core files


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]