From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20403 invoked by alias); 18 Dec 2008 18:47:20 -0000 Received: (qmail 20387 invoked by uid 22791); 18 Dec 2008 18:47:18 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Dec 2008 18:46:38 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id mBIIkUpL020053; Thu, 18 Dec 2008 19:46:30 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id mBIIkTgK015985; Thu, 18 Dec 2008 19:46:29 +0100 (CET) Date: Thu, 18 Dec 2008 18:47:00 -0000 Message-Id: <200812181846.mBIIkTgK015985@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: sergiodj@linux.vnet.ibm.com CC: gdb-patches@sourceware.org In-reply-to: <1229620702.6602.12.camel@miki> (message from =?ISO-8859-1?Q?S=E9rgio?= Durigan =?ISO-8859-1?Q?J=FAnior?= on Thu, 18 Dec 2008 15:18:22 -0200) Subject: Re: RFC: "info proc map" for corefiles References: <1229620702.6602.12.camel@miki> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00323.txt.bz2 > From: =?ISO-8859-1?Q?S=E9rgio?= Durigan =?ISO-8859-1?Q?J=FAnior?= > Date: Thu, 18 Dec 2008 15:18:22 -0200 > > Hi guys and girls, > > This little patch o' mine implements the command "info proc map" for > corefiles in GDB. Initially, this feature is only provided for live > process being debugged. We decided that it would be good to have such > functionality for corefiles as well, since this information (the memory > mappings) is available inside them. > > This was something that Thiago and I have discussed for some time, and > it took a little while for me to figure out how things worked in this > part of the code. I really don't know if this is the right way to > implement this, so I'd be glad if you could take a look and give your > opinions. > > It's not architecture-dependend so this time you'll be able to test > without problems. Comments and reviews are welcome, as always. This looks pretty cool, but I think having this as "info proc" subcommand is wrong: (gdb) help info ... info proc -- Show /proc process information about any running process ... Corefiles have nothing to do with /proc and many operating systems don't even have such a thing.