This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Breakpoints in constructors
On Fri, Jan 06, 2006 at 06:56:39PM +0530, Amit Kale wrote:
> I was not able to fix other failures though. The major one being a breakpoint
> on a statement in main causes three breakpoints to appear. It's because this
> statement is a call to a C++ inlined function. The expansion of inline
> function dodges the check in my patch for multiple breakpoints appearing for
> the same C statement when the statement is spread across multiple
> instructions interlaced with instructions from surrounding statements. I
> checked for function name, which would be the inline function name. That's
> why my check fails. Sigh, I wanted to send this patch again only after fixing
> this problem, but don't have any good ideas on how to do that. I'll very much
> appreciate if anyone has ideas about fixing this.
The hack of checking whether they appear in the same function just
won't scale to fix this - possibly ever, but certainly not until inline
functions are represented properly in GDB's symbol table.
--
Daniel Jacobowitz
CodeSourcery