From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1981 invoked by alias); 12 Jun 2008 14:30:39 -0000 Received: (qmail 1972 invoked by uid 22791); 12 Jun 2008 14:30:38 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate3.de.ibm.com (HELO mtagate3.de.ibm.com) (195.212.29.152) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jun 2008 14:30:15 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.13.8/8.13.8) with ESMTP id m5CEUC6I066508 for ; Thu, 12 Jun 2008 14:30:12 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m5CEUBa83666108 for ; Thu, 12 Jun 2008 16:30:11 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m5CEUBpp021416 for ; Thu, 12 Jun 2008 16:30:11 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m5CEUAF3021413; Thu, 12 Jun 2008 16:30:10 +0200 Message-Id: <200806121430.m5CEUAF3021413@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 12 Jun 2008 16:30:10 +0200 Subject: Re: How can I get a memory map out of a core file? To: luisgpm@linux.vnet.ibm.com Date: Thu, 12 Jun 2008 14:30:00 -0000 From: "Ulrich Weigand" Cc: drow@false.org (Daniel Jacobowitz), bruce.korb@gmail.com (Bruce Korb), schwab@suse.de (Andreas Schwab), gdb@sourceware.org, eliz@gnu.org (Eli Zaretskii), msnyder@specifix.com (Michael Snyder) In-Reply-To: <1213280300.18445.1.camel@gargoyle.br.ibm.com> from "Luis Machado" at Jun 12, 2008 11:18:20 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00112.txt.bz2 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