From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23347 invoked by alias); 3 Aug 2007 14:02:36 -0000 Received: (qmail 23331 invoked by uid 22791); 3 Aug 2007 14:02: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.31) with ESMTP; Fri, 03 Aug 2007 14:02:28 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id F0F2198123; Fri, 3 Aug 2007 14:02:27 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id CEE5898122; Fri, 3 Aug 2007 14:02:27 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IGxjV-00069V-QF; Fri, 03 Aug 2007 10:02:25 -0400 Date: Fri, 03 Aug 2007 14:02:00 -0000 From: Daniel Jacobowitz To: Robin Getz Cc: gdb@sourceware.org Subject: Re: debugging something with multiple text sections in onecompilation unit Message-ID: <20070803140225.GA23632@caradoc.them.org> Mail-Followup-To: Robin Getz , gdb@sourceware.org References: <200708030009.46899.rgetz@blackfin.uclinux.org> <20070803113743.GA16769@caradoc.them.org> <200708031001.19652.rgetz@blackfin.uclinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708031001.19652.rgetz@blackfin.uclinux.org> User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-08/txt/msg00024.txt.bz2 On Fri, Aug 03, 2007 at 10:01:19AM -0400, Robin Getz wrote: > Since gdb knows there are multiple discontinuous sections (via > parsing .debug_aranges) why not just ask the kernel where the section was > loaded? > > Or is it "it's possible, just not implemented" Sure. Take a look at how qOffsets works. qOffsets is not rich enough to specify what you need; but assuming you use sensible ELF segments, the new code in HEAD after 6.6 could be easily exteneded to take more than just a text and data segment. We just didn't, because we didn't have any users for that. -- Daniel Jacobowitz CodeSourcery