This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: breakpoints in C++ constructors
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sources dot redhat dot com
- Date: Tue, 14 Sep 2004 12:15:26 -0400
- Subject: Re: breakpoints in C++ constructors
- References: <vt2fz5k6dic.fsf@zenia.home>
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