This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: breakpoints in C++ constructors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]