This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Get backtrace at PLT and stepi into PLT


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]