From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30064 invoked by alias); 20 Jul 2009 12:07:36 -0000 Received: (qmail 30056 invoked by uid 22791); 20 Jul 2009 12:07:35 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 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; Mon, 20 Jul 2009 12:07:24 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 34AB0109FE; Mon, 20 Jul 2009 12:07:23 +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 1C8D5108CF; Mon, 20 Jul 2009 12:07:23 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1MSreM-0007N1-Al; Mon, 20 Jul 2009 08:07:22 -0400 Date: Mon, 20 Jul 2009 13:15:00 -0000 From: Daniel Jacobowitz To: Thinker Li Cc: gdb-patches@sourceware.org Subject: Re: Get backtrace at PLT and stepi into PLT Message-ID: <20090720120722.GA28313@caradoc.them.org> Mail-Followup-To: Thinker Li , gdb-patches@sourceware.org References: <20090717142605.GA29594@caradoc.them.org> <19044.7794.607077.330791@bibi.branda.to> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19044.7794.607077.330791@bibi.branda.to> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes 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: 2009-07/txt/msg00469.txt.bz2 On Mon, Jul 20, 2009 at 03:36:18PM +0800, Thinker Li wrote: > And, as what you had said, there are a lot of ABI-defined mapping symbols > ($a, $t) in symbol tables of shared objects. But, they are generated > only for .text but .plt section. So, it got nothing to try to issue > a backtrace command when the inferior is stopped at .plt section. > > Is GNU ld supposed to generate ABI-defined mapping symbols for > .plt? Or, does GDB need to do more work on this issue? Mapping symbols are used for other things, like setting breakpoints, but not for backtrace. What's the actual problem with backtracing? Current versions of GNU ld do generate correct mapping symbols for the PLT. Some earlier versions didn't, though. -- Daniel Jacobowitz CodeSourcery