From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16712 invoked by alias); 14 Sep 2004 16:15:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16695 invoked from network); 14 Sep 2004 16:15:26 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 14 Sep 2004 16:15:26 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1C7Fxm-00068O-5n for ; Tue, 14 Sep 2004 12:15:26 -0400 Date: Tue, 14 Sep 2004 16:15:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: breakpoints in C++ constructors Message-ID: <20040914161526.GA23465@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-09/txt/msg00102.txt.bz2 On Tue, Sep 14, 2004 at 11:06:51AM -0500, Jim Blandy wrote: > The symbol table code would need to be adapted to return multiple > addresses for a given source location. Since a given source line can > be split into many runs of machine code, a source line may, in > general, appear any number of times in the line tables; we currently > just return the first entry we find, and hope that's appropriate. To > accomodate constructors, we might consider returning a sal for the > first line table entry for a given source location in each machine- > level function: if a given source line appears nine times in three > separate machine-level functions, we could return a list of three > sals reporting the first occurrence of the line in each function. I think we would want to take inline instances into account here; even before we support other aspects of inlining, the "source line" is logically distinct each time it is inlined. Everything else looked reasonable to me. -- Daniel Jacobowitz