From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26492 invoked by alias); 7 Jun 2008 16:31:34 -0000 Received: (qmail 26471 invoked by uid 22791); 7 Jun 2008 16:31:29 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 07 Jun 2008 16:31:09 +0000 Received: by wa-out-1112.google.com with SMTP id l24so1348992waf.12 for ; Sat, 07 Jun 2008 09:31:07 -0700 (PDT) Received: by 10.114.130.1 with SMTP id c1mr1516375wad.152.1212856267635; Sat, 07 Jun 2008 09:31:07 -0700 (PDT) Received: from ?192.168.1.102? ( [75.0.178.24]) by mx.google.com with ESMTPS id f20sm8817485waf.53.2008.06.07.09.31.05 (version=SSLv3 cipher=RC4-MD5); Sat, 07 Jun 2008 09:31:06 -0700 (PDT) To: Eli Zaretskii Subject: Re: How can I get a memory map out of a core file? Date: Sat, 07 Jun 2008 16:31:00 -0000 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) Cc: Michael Snyder , gdb@sourceware.org References: <668c430c0806061345m3c480d95nac5d19b02998715c@mail.gmail.com> <1212789259.3601.426.camel@localhost.localdomain> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806070930.21380.Bruce.Korb@gmail.com> From: Bruce Korb 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/msg00046.txt.bz2 On Friday 06 June 2008 11:29:29 pm Eli Zaretskii wrote: > > On Fri, 2008-06-06 at 13:45 -0700, Bruce Korb wrote: > > > Hi, > > > > > > "jmap" looked really nice, but that is Solaris only. > > > "pmap" is almost what I want, but there's no /proc/pid directory > > > for my core dump any more. > > > If there is some GDB command I can use, I haven't found it. > > > I haven't seen any obvious way to emulate it either. > > > Surely someone, somewhere has solved this problem. > > > Anyone know where the solution is hiding? :) > > > Thank you. Regards - Bruce > > > > Try "help info proc mappings". It may be the closest we've got > > to what you want. > > How can this help in a core file? The process is already dead, so > it's not in /proc, right? Or am I missing something? Hi Eli, Nope. You're right, Eli. It doesn't help. I tried it. I also tried sourcing a file that had a series of "x/3x 0xNNN00000" commands at 1 Meg steps. That didn't work either because GDB quit as soon as an invalid address was attempted. So, for me, the ideal solution is a command that yields (figures out) the valid address ranges, and an adequate backup would be to tell the "source" command to keep going after a failed command. Perhaps this is a "request for enhancement", though I hoped there might already be some hackish way of accomplishing what I need. Thanks! Cheers - Bruce