From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13049 invoked by alias); 13 Mar 2014 01:01:56 -0000 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 Received: (qmail 13030 invoked by uid 89); 13 Mar 2014 01:01:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-pb0-f49.google.com Received: from mail-pb0-f49.google.com (HELO mail-pb0-f49.google.com) (209.85.160.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 13 Mar 2014 01:01:54 +0000 Received: by mail-pb0-f49.google.com with SMTP id jt11so307698pbb.36 for ; Wed, 12 Mar 2014 18:01:52 -0700 (PDT) X-Received: by 10.68.231.35 with SMTP id td3mr573758pbc.137.1394672512477; Wed, 12 Mar 2014 18:01:52 -0700 (PDT) Received: from bubble.grove.modra.org ([101.166.26.37]) by mx.google.com with ESMTPSA id os1sm920253pac.20.2014.03.12.18.01.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Mar 2014 18:01:51 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 1FDB0EA00D2; Thu, 13 Mar 2014 11:31:47 +1030 (CST) Date: Thu, 13 Mar 2014 01:01:00 -0000 From: Alan Modra To: Cary Coutant Cc: Doug Evans , "Metzger, Markus T" , "gdb@sourceware.org" , "binutils@sourceware.org" Subject: Re: vdso handling Message-ID: <20140313010147.GZ26922@bubble.grove.modra.org> Mail-Followup-To: Cary Coutant , Doug Evans , "Metzger, Markus T" , "gdb@sourceware.org" , "binutils@sourceware.org" References: <20140312071701.GW26922@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-03/txt/msg00026.txt.bz2 On Wed, Mar 12, 2014 at 01:22:58PM -0700, Cary Coutant wrote: > > I think a case can be made that gdb should be able to use the > > "execution view" of the program here. > > As for how to achieve that ... "Discuss." :-) > > Add a PT_DEBUG program header entry? The PT_DEBUG segment would need > to have a small header that allows the debugger to find .debug_abbrev, > .debug_info, etc. (i.e., a mini section table). Or, just add > individual program header entries for each of the standard debug > sections: PT_DEBUG_ABBREV, PT_DEBUG_INFO, etc. Debug sections are not normally loaded. For that reason I don't think it makes any sense to specify program headers for them. It wouldn't help in the vdso case anyway, since the problem there is that you only have the loaded part of the original ELF file. -- Alan Modra Australia Development Lab, IBM