From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1749 invoked by alias); 10 Jan 2008 09:29:56 -0000 Received: (qmail 1737 invoked by uid 22791); 10 Jan 2008 09:29:56 -0000 X-Spam-Check-By: sourceware.org Received: from ns1.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Jan 2008 09:29:34 +0000 Received: from Relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id EA5F62667A; Thu, 10 Jan 2008 10:29:31 +0100 (CET) From: Andreas Schwab To: Joel Brobecker Cc: Michael Snyder , gdb-patches@sourceware.org Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue? References: <20080109151745.GA13181@adacore.com> <1199910284.14654.13.camel@localhost.localdomain> <20080109203453.GI21281@adacore.com> <1199912695.14654.21.camel@localhost.localdomain> <20080110041540.GK21281@adacore.com> X-Yow: .. ich bin in einem dusenjet ins jahr 53 vor chr... ich lande im antiken Rom... einige gladiatoren spielen scrabble... ich rieche PIZZA... Date: Thu, 10 Jan 2008 09:29:00 -0000 In-Reply-To: <20080110041540.GK21281@adacore.com> (Joel Brobecker's message of "Wed\, 9 Jan 2008 20\:15\:40 -0800") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/msg00230.txt.bz2 Joel Brobecker writes: > A question that I asked myself was: Why does "break FUNCTION_NAME" > skip the prologue and yet "break FILE:LINENO" (from clicking on the > filename) doesn't? That looks quite natural to me. If I request a breakpoint on a line I want it to be placed as close as possible to that line. If I request a breakpoint on a function, I want it to be set to the first interesting point in that function. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."