From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32111 invoked by alias); 1 Apr 2009 19:14:58 -0000 Received: (qmail 32098 invoked by uid 22791); 1 Apr 2009 19:14:57 -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; Wed, 01 Apr 2009 19:14:50 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 03793106A9; Wed, 1 Apr 2009 19:14:48 +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 DC85A105BB; Wed, 1 Apr 2009 19:14:47 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Lp5te-0004va-Jz; Wed, 01 Apr 2009 15:14:46 -0400 Date: Wed, 01 Apr 2009 19:14:00 -0000 From: Daniel Jacobowitz To: Jonas Maebe Cc: gdb@sourceware.org Subject: Re: Skipping over trampolines/stubs Message-ID: <20090401191446.GA18926@caradoc.them.org> Mail-Followup-To: Jonas Maebe , gdb@sourceware.org References: <4B835C7C-B28E-4552-87E0-25D803741FA3@elis.ugent.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B835C7C-B28E-4552-87E0-25D803741FA3@elis.ugent.be> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00009.txt.bz2 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