From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13452 invoked by alias); 11 Jan 2008 20:32:52 -0000 Received: (qmail 13441 invoked by uid 22791); 11 Jan 2008 20:32:51 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Jan 2008 20:32:31 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id DC3EA3C24C; Fri, 11 Jan 2008 12:32:28 -0800 (PST) Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue? From: Michael Snyder To: Joel Brobecker Cc: Mark Kettenis , ebotcazou@adacore.com, jimb@codesourcery.com, gdb-patches@sourceware.org In-Reply-To: <20080111053547.GB12954@adacore.com> References: <20080109151745.GA13181@adacore.com> <200801092140.43362.ebotcazou@adacore.com> <200801101058.m0AAw7HA023877@brahms.sibelius.xs4all.nl> <200801101247.28736.ebotcazou@adacore.com> <1200001622.14654.29.camel@localhost.localdomain> <200801102208.m0AM8aDR023344@brahms.sibelius.xs4all.nl> <20080111053547.GB12954@adacore.com> Content-Type: text/plain Date: Fri, 11 Jan 2008 20:32:00 -0000 Message-Id: <1200083548.14654.45.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00285.txt.bz2 On Thu, 2008-01-10 at 21:35 -0800, Joel Brobecker wrote: > > 1. int > > 2. foo (int i, double d) > > 3. { > > 4. int j = 42; > > 5. float f = sin(d); > > 6. ... > > 7. } > > > > the first assignment may be scheduled into the prologue, but the > > second almost certainly won't. > > The prologue should never include any of the local variable assignments. > > At -O0, the situation is very clear and easy, as the variable > assignments are always past the prologue. Each variable assignment > has its own line and you can break on them as usual. My patches > will not affect that. Are you sure that's true in general, on all architectures? I can certainly remember seeing assignment instructions intermixed with prologue instructions in the past, but I can't say at what optimization level or on what architecture.