This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Get backtrace at PLT and stepi into PLT
- From: Daniel Jacobowitz <drow at false dot org>
- To: Thinker Li <thinker at branda dot to>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 17 Jul 2009 08:03:38 -0400
- Subject: Re: Get backtrace at PLT and stepi into PLT
- References: <19040.10633.720987.12824@bibi.branda.to>
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