From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15914 invoked by alias); 11 Jan 2008 10:35:15 -0000 Received: (qmail 15900 invoked by uid 22791); 11 Jan 2008 10:35:14 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (213.8.233.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Jan 2008 10:34:55 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-42-152.inter.net.il [80.230.42.152]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id IVC93806 (AUTH halo1); Fri, 11 Jan 2008 12:32:08 +0200 (IST) Date: Fri, 11 Jan 2008 10:35:00 -0000 Message-Id: From: Eli Zaretskii To: Andreas Schwab CC: brobecker@adacore.com, msnyder@specifix.com, gdb-patches@sourceware.org In-reply-to: (message from Andreas Schwab on Thu, 10 Jan 2008 10:29:31 +0100) Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue? Reply-to: Eli Zaretskii 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-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/msg00262.txt.bz2 > From: Andreas Schwab > Cc: Michael Snyder , gdb-patches@sourceware.org > Date: Thu, 10 Jan 2008 10:29:31 +0100 > > 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. Agreed.