How can I get a memory map out of a core file?

Ulrich Weigand uweigand@de.ibm.com
Thu Jun 12 14:30:00 GMT 2008


Luis Machado wrote:

> Does the libraries' mappings correspond exactly to what we had before in
> the output of "info proc mappings" for the live process? Right before
> the core file was generated?

Well, it corresponds exactly to what "info target" would have shown on
the live process.  Of course, "info target" and "info proc mappings"
show somewhat different information; "info target" displays *sections*
retrieved from loaded symbol files, while "info proc mappings" display
memory maps as reported by the kernel -- these correspond to the 
*segments* (not sections) of ELF files, and in addition show other
maps (e.g. stack, heap, mmap, ...).

What I'm wondering is basically whether for your purposes, you really
need the segment/mapping information, or whether section data as shown
by "info target" is sufficient.

Bye,
Ulrich


-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com



More information about the Gdb mailing list