From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9913 invoked by alias); 19 Aug 2002 15:48:40 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9903 invoked from network); 19 Aug 2002 15:48:39 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 19 Aug 2002 15:48:39 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17golg-0003qI-00; Mon, 19 Aug 2002 10:48:36 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17gomD-0002K0-00; Mon, 19 Aug 2002 11:49:09 -0400 Date: Mon, 19 Aug 2002 08:48:00 -0000 From: Daniel Jacobowitz To: Iso-H , gdb@sources.redhat.com Subject: Re: gdb-5.x and step over inline functions Message-ID: <20020819154909.GB7772@nevyn.them.org> Mail-Followup-To: Iso-H , gdb@sources.redhat.com References: <20020224133415.A12371@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020224133415.A12371@nevyn.them.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00210.txt.bz2 On Sun, Feb 24, 2002 at 01:34:15PM -0500, Daniel Jacobowitz wrote: > On Sun, Feb 24, 2002 at 08:09:11PM +0200, Iso-H wrote: > > On Sun, 24 Feb 2002, Iso-H wrote: > > > > > On Sun, 24 Feb 2002, Daniel Jacobowitz wrote: > > > > > > > On Sun, Feb 24, 2002 at 03:14:00PM +0200, Iso-H wrote: > > > > > > > > > > On Sun, 24 Feb 2002, Eli Zaretskii wrote: > > > > > > > > > > > > > > > > > On Sun, 24 Feb 2002, Iso-H wrote: > > > > > > > > > > > > > Is there any way to step over inline functions > > > > > > > when using gdb >= 5.1 ? Some (commandline or other)option > > > > > > > perhaps? > > > > > > .... > > > > > > > > Could you provide a small testcase, with source and a compile > > > > commandline? > > > > > > It seems to be so that it is difficult to create > > > just simple "demo", but I'll try... > > > > > > > Ok. here it is; one file only ;) > > > As you can see, gdb doesn't show "f_func", but Demo_t's > > constructor instead ! > > Thanks! I think I see what's going on; I'll take a better look at it > later tonight. And, eight months later... This is unfortunately a GCC bug. The debug information says that the beginning of the function is on line 17, in the inline constructor; nothing GDB can do about that. I'm not quite sure if this is fixed or avoided in GCC 3.1, but the problem doesn't show up. If you use GCC 3.1, you'll notice that list behaves properly but break drops you in an inline function; that's symptomatic of two things: - GDB's lack of proper support for inline functions - GDB's prologue skipping, as Andrew was discussing this weekend. Both of these should be resolved but there's no clear time frame on either. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer