From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19690 invoked by alias); 27 Mar 2009 15:55:25 -0000 Received: (qmail 19599 invoked by uid 22791); 27 Mar 2009 15:55:22 -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; Fri, 27 Mar 2009 15:55:17 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7AD1F2BAC49; Fri, 27 Mar 2009 11:55:15 -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 1ggiumrOs7hn; Fri, 27 Mar 2009 11:55:15 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 44D9C2BAC42; Fri, 27 Mar 2009 11:55:15 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 4A50E5BD21; Fri, 27 Mar 2009 08:55:06 -0700 (PDT) Date: Fri, 27 Mar 2009 16:00:00 -0000 From: Joel Brobecker To: Tom Tromey , gdb-patches@sourceware.org Subject: Re: RFC: preserve line number when skipping prologue Message-ID: <20090327155506.GS9472@adacore.com> References: <20090326224949.GM9472@adacore.com> <20090327021842.GA29050@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090327021842.GA29050@caradoc.them.org> 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/msg00627.txt.bz2 > FWIW, a (related) request we often see is for IDEs to report which > lines can have breakpoints set on them. Still not foolproof with > optimized code, but much better. Eclipse JDT (Java) does this, and I > believe at least one vendor has managed to get CDT to do it also. I guess the way they do it is by doing a reverse lookup after having inserted the breakpoint (by using the "info line *ADDR" or its MI equivalent)? For IDEs, we could perhaps enhance the output to include the actual line if different from the requested one. Or, we could decide to change the break command to report the actual line. I can poll the AdaCore engineers :). -- Joel