This is the mail archive of the gdb-patches@sourceware.org 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: [RFA] unexpected multiple location for breakpoint


> Date: Tue, 28 Dec 2010 15:25:46 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> As a user, we're expecting the debugger to stop on line 53 at every
> iteration.  But because we only break on the first instance of line 53,
> and because that first instance is outside the actual loop, we end up
> stopping only once.
> 
> (there are some lexical blocks in the assembly code I'm looking at,
> but nothing significant to line 53, I believe).
> 
> According to you, bug or feature?

Definitely a bug.  Whether it can be fixed in some reasonable way, is
another question.

> If this is a bug, then the only solution I can think of is inserting
> a breakpoint at *every* instances of line 53, regardless of
> lexical-block relationships.

When would that be worse than what we have now?


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