From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29256 invoked by alias); 26 Mar 2009 23:45:54 -0000 Received: (qmail 29248 invoked by uid 22791); 26 Mar 2009 23:45:53 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 Mar 2009 23:45:49 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 95DD32BAC4B; Thu, 26 Mar 2009 19:45:47 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f-u5lRUw4wWh; Thu, 26 Mar 2009 19:45:47 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 6274D2BAC48; Thu, 26 Mar 2009 19:45:47 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 5EC0D5BD21; Thu, 26 Mar 2009 16:45:39 -0700 (PDT) Date: Fri, 27 Mar 2009 00:46:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: RFC: preserve line number when skipping prologue Message-ID: <20090326234539.GO9472@adacore.com> References: <20090326224949.GM9472@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2009-03/txt/msg00605.txt.bz2 > On the one hand, the line number you asked for is used if the > breakpoint ever needs to be reset. So, it is relevant. Yes, that's true too. > (gdb) b 3 > Breakpoint 1 at 0x80483c5: file m.c, line 3. > (Line 3 is not executable; actually set at line 7.) I suppose we could. But we've used the current behavior for years, and I don't feel sufficiently strongly about it that I want to improve it (yep, i'm lazy :). -- Joel