From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26913 invoked by alias); 17 Jul 2009 12:03:54 -0000 Received: (qmail 26903 invoked by uid 22791); 17 Jul 2009 12:03:53 -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; Fri, 17 Jul 2009 12:03:43 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id C5B2210623; Fri, 17 Jul 2009 12:03:39 +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 79EBB10620; Fri, 17 Jul 2009 12:03:39 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1MRmA6-0004eX-2E; Fri, 17 Jul 2009 08:03:38 -0400 Date: Fri, 17 Jul 2009 14:26: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: <20090717120338.GA17493@caradoc.them.org> Mail-Followup-To: Thinker Li , gdb-patches@sourceware.org References: <19040.10633.720987.12824@bibi.branda.to> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19040.10633.720987.12824@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/msg00425.txt.bz2 On Fri, Jul 17, 2009 at 03:34:33PM +0800, Thinker Li wrote: > I tried it with GDB 6.8. I had just tried the version from CVS this morning. > It can stepi into PLT, but backtrace is still not work. > > I did some tests for GDB. > I configured GDB with command > configure --build=x86_64-unknown-linux-gnu \ > --host=x86_64-unknown-linux-gnu \ > --target=arm-eabi-linux --disable-werror It should not matter to GDB, but you probably want arm-linux-gnueabi there instead of arm-eabi-linux. > > > If you try to backtrace stack when GDB stop at PLT, you would > > > get nothing. It is because no any unwinder can handle code in PLT. > > > > arm_stub_unwinder_sniffer is supposed to handle this case. It's been > > there since 2005, and I've used it successfully. What's going wrong > > with that? > I can not even found arm_stub_unwinder_sniffer in the source tree of > GDB. So, where is arm_stub_unwinder_sniffer? > Is it part of GDB, officially? Sorry, arm_stub_unwind_sniffer. You'll see that contains a call to in_plt_section. Is that not working for you? -- Daniel Jacobowitz CodeSourcery