From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19176 invoked by alias); 9 Dec 2008 17:33:32 -0000 Received: (qmail 19163 invoked by uid 22791); 9 Dec 2008 17:33:31 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Dec 2008 17:32:52 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CD3DE10EEC; Tue, 9 Dec 2008 17:32:49 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id B5ADA10CDC; Tue, 9 Dec 2008 17:32:49 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LA6S0-0007p4-QI; Tue, 09 Dec 2008 12:32:48 -0500 Date: Tue, 09 Dec 2008 17:33:00 -0000 From: Daniel Jacobowitz To: Paul Smith Cc: gdb@sourceware.org Subject: Re: Classifying core files? Message-ID: <20081209173248.GA29649@caradoc.them.org> Mail-Followup-To: Paul Smith , gdb@sourceware.org References: <1228842548.2017.64.camel@psmith-ubeta.netezza.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1228842548.2017.64.camel@psmith-ubeta.netezza.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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-12/txt/msg00025.txt.bz2 On Tue, Dec 09, 2008 at 12:09:08PM -0500, Paul Smith wrote: > This seems brittle, esp. the first part using "file" and parsing the > output of GDB to find the executable. Does anyone have any better > options? Are there any "info" operations in GDB I could use, given > _only_ the core file, that can help me? What about some way of tagging > the executables themselves, either with a string or somehow in the > executable ELF image that would get added to the core, that I could > query given just the resulting core file? Sounds like you should take a look at Roland's and Jan's work on build-id notes. There's also a Linux kernel patch that causes the ELF notes for the executable to be dumped to the core file; it should be easy to replicate onto another system that supports core dumping. -- Daniel Jacobowitz CodeSourcery