From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25383 invoked by alias); 13 Jun 2005 16:15:46 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25188 invoked by uid 22791); 13 Jun 2005 16:15:35 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 13 Jun 2005 16:15:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1Dhrb2-0004ZL-Mg; Mon, 13 Jun 2005 12:15:32 -0400 Date: Mon, 13 Jun 2005 16:15:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: gdb-patches@sourceware.org Subject: Re: RFC: Improve support for "debugging" unlinked objects Message-ID: <20050613161531.GA7244@nevyn.them.org> Mail-Followup-To: Michael Snyder , gdb-patches@sourceware.org References: <20050608214956.GA10586@nevyn.them.org> <42A9F3A4.9080001@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42A9F3A4.9080001@redhat.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00154.txt.bz2 On Fri, Jun 10, 2005 at 01:10:12PM -0700, Michael Snyder wrote: > One suggestion -- could you use the section's file offset > in place of a "random location"? I'm guessing it's available > from bfd, and it seems to me that it's guaranteed to be unique. That sounded like a great idea, but unfortunately, it's not available from BFD. It's available for ELF files in the ELF-private headers, but that seems nasty - nothing else in the patch is actually ELF-specific. I believe the idea is that BFD sections don't necessarily come from a file; for instance some of the "sections" in a core file's bfd are synthesized from data in the notes section. I've retested the patch and checked it in. -- Daniel Jacobowitz CodeSourcery, LLC