This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Skipping over trampolines/stubs
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jonas Maebe <jonas dot maebe at elis dot ugent dot be>
- Cc: gdb at sourceware dot org
- Date: Wed, 1 Apr 2009 15:14:46 -0400
- Subject: Re: Skipping over trampolines/stubs
- References: <4B835C7C-B28E-4552-87E0-25D803741FA3@elis.ugent.be>
On Wed, Apr 01, 2009 at 09:08:11PM +0200, Jonas Maebe wrote:
> So I'm wondering whether there's maybe some trick that you can use to
> make gdb step through arbitrary stubs somehow (maybe some kind of fake
> line information that it always ignores and just skips over), or whether
> there is another possible approach.
GDB already supports this for other languages; I suggest just adding
detection of the Free Pascal stubs to the debugger. ObjC and C++
both have similar requirements, I believe. In C++ they're virtual
call thunks.
--
Daniel Jacobowitz
CodeSourcery