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?
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: luisgpm at linux dot vnet dot ibm dot com
- Cc: drow at false dot org (Daniel Jacobowitz), bruce dot korb at gmail dot com (Bruce Korb), schwab at suse dot de (Andreas Schwab), gdb at sourceware dot org, eliz at gnu dot org (Eli Zaretskii), msnyder at specifix dot com (Michael Snyder)
- Date: Thu, 12 Jun 2008 16:30:10 +0200 (CEST)
- Subject: Re: How can I get a memory map out of a core file?
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