From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32092 invoked by alias); 29 May 2002 01:05:49 -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 32033 invoked from network); 29 May 2002 01:05:45 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 29 May 2002 01:05:45 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 2007E3D06; Tue, 28 May 2002 18:33:13 -0400 (EDT) Message-ID: <3CF405A9.6050007@cygnus.com> Date: Tue, 28 May 2002 18:05:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc2) Gecko/20020518 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Carlo Wood Cc: gdb@sources.redhat.com Subject: Re: Is this information correct? References: <20020527142006.A23953@alinoe.com> <20020527180721.GC5523@branoic.them.org> <20020528063001.A16230@alinoe.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00312.txt.bz2 > On Mon, May 27, 2002 at 02:07:21PM -0400, Daniel Jacobowitz wrote: > >> What's this part about though? I think it's really referring to gdb >> 5.1 instead. 5.2 should be fine. > > > Blah, its 6:30 am now... but we figured out what it was. > It was not gdb's fault, nor gcc's fault. The "problem" > was that he was using -O2 and setting a break point > for main causes the break point to be set 4 bytes behond > 'main' (the function pointer) which was already at the > start of some inlined constructor for which is was not > clear that it would be there (-O2 magic etc). > Anyway, my (independantly from gdb written) libcwd gave > exactly the same source file line number info ;). Can I suggest adding a more generic comment about avoiding ``-O2'' and ``-fomit-frame-pointer''. GD should be able to handle these cases but (typically) it can't. A known limitation in GDB (i.e. a bug :-). enjoy, Andrew