From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28098 invoked by alias); 13 Feb 2006 17:47:18 -0000 Received: (qmail 28085 invoked by uid 22791); 13 Feb 2006 17:47:14 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.201) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 13 Feb 2006 17:47:07 +0000 Received: by zproxy.gmail.com with SMTP id i11so1033840nzh for ; Mon, 13 Feb 2006 09:47:05 -0800 (PST) Received: by 10.36.25.18 with SMTP id 18mr3440018nzy; Mon, 13 Feb 2006 09:47:05 -0800 (PST) Received: by 10.37.2.63 with HTTP; Mon, 13 Feb 2006 09:47:05 -0800 (PST) Message-ID: <8f2776cb0602130947s56ed2f8bs3b66049e8e4c89a3@mail.gmail.com> Date: Mon, 13 Feb 2006 17:47:00 -0000 From: Jim Blandy To: Mark Kettenis Subject: Re: [PATCH] Fix problem with scope.exp test, skipping past init0 call Cc: fnf@specifix.com, drow@false.org, gdb-patches@sourceware.org In-Reply-To: <200602131648.k1DGmUqx009322@elgar.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200602121510.01657.fnf@specifix.com> <200602131047.30428.fnf@specifix.com> <200602131604.k1DG4n9Y025733@elgar.sibelius.xs4all.nl> <200602131118.49981.fnf@specifix.com> <200602131648.k1DGmUqx009322@elgar.sibelius.xs4all.nl> 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/msg00283.txt.bz2 Actually, having seen other's responses here, I'm inclined to say that the proper fix is to simply drop the code in scope.exp for getting from the opening brace to the first line. Setting a breakpoint on main simply shouldn't leave you on the opening brace, and that test suite logic has always been papering over a bug. If prologues contain calls to __main, then the prologue analyzers should skip them.