This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to tell gdb about dlls using remote protocol
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Wiljan Derks <Wiljan dot Derks at zonnet dot nl>, gdb at sourceware dot org, Mark Kettenis <kettenis at gnu dot org>
- Date: Thu, 1 Feb 2007 15:03:01 -0800
- Subject: Re: How to tell gdb about dlls using remote protocol
- References: <003f01c7457c$0f2d8090$9600000a@kamer> <20070131223113.GA15122@nevyn.them.org> <20070201175311.GG17864@adacore.com> <20070201225437.GA13740@nevyn.them.org>
> In general, if we can not find the start of the current function,
> we have absolutely no chance of getting out of it.
>
> This is a standard problem e.g. with the Windows system DLLs, since
> we have inadequate means to recover symbol information from them.
At least on Windows, I think the change I proposed should help
increase the odds in our favor in this situation. If I read the code
correctly, the current approach will almost always fail, whereas
using %ebp should get us somewhere sensible unless %ebp is used
as a scratch register...
--
Joel