This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How can I get a memory map out of a core file?
On Saturday 07 June 2008 11:28:55 am Andreas Schwab wrote:
> Brian Dessent <brian@dessent.net> writes:
>
> > Local core dump file:
> > `/home/brian/core', file type elf32-i386.
> > 0x08054000 - 0x08055000 is load2
> > 0x08055000 - 0x08058000 is load3
> > 0x40016000 - 0x40017000 is load5
> > 0xbffff000 - 0xc0000000 is load6
> > 0xffffe000 - 0xfffff000 is load7
> >
> > Though I suppose those section names are not really all that useful,
>
> Those are not sections (a corefile does not contain any sections), but
> segments (which are unnamed).
And are what I was looking for. "info target" just wasn't jumping out as
the way to get the list of mapped data. The list is a little weird with
zero length sections, but I can tell what's mapped now. Thank you!!
Perhaps put "memory map" in the index and point to
"info target"? I went for that phrase due to the well-known "pmap":
NAME
pmap - display information about process memory mappings
SYNOPSIS
pmap [ -d | -q | -h | -V ] pid
DESCRIPTION
pmap(1) displays information about a process's memory mappings, such as
its stack, data segment, mapped files, and so on.
Thank you for your help! Regards, Bruce