From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24547 invoked by alias); 13 Feb 2006 15:53:23 -0000 Received: (qmail 24538 invoked by uid 22791); 13 Feb 2006 15:53:23 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 13 Feb 2006 15:53:22 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F8g0t-00071J-Mi; Mon, 13 Feb 2006 10:53:19 -0500 Date: Mon, 13 Feb 2006 15:53:00 -0000 From: Daniel Jacobowitz To: Fred Fish Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Fix problem with scope.exp test, skipping past init0 call Message-ID: <20060213155319.GA26917@nevyn.them.org> Mail-Followup-To: Fred Fish , gdb-patches@sourceware.org References: <200602121510.01657.fnf@specifix.com> <20060213153903.GA26349@nevyn.them.org> <200602131047.30428.fnf@specifix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602131047.30428.fnf@specifix.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00277.txt.bz2 On Mon, Feb 13, 2006 at 10:47:30AM -0500, Fred Fish wrote: > > Well, that's supposed to skip a call to __main(), which GCC generates > > on very few platforms... stopping at the opening brace is definitely > > a bug in its own right, in the debug info or in the prologue skipper. > > The problem is that gcc now generates prologues that the prologue skipper > isn't prepared to handle. Hmm, many arches other than i386 are more trusting of line information than i386 is - but we've historically had some problems with bad versions of gcc there so it's understandable. > The latest gcc generates prologues like: > > main: > leal 4(%esp), %ecx > andl $-16, %esp > pushl -4(%ecx) > pushl %ebp > movl %esp, %ebp > pushl %ecx > call foo Ahh - your GCC has unaligned stack support for main. Not surprising that GDB can't handle this; it's clever, and fresh off the presses. -- Daniel Jacobowitz CodeSourcery