This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] unexpected multiple location for breakpoint
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 28 Dec 2010 21:13:48 +0200
- Subject: Re: [RFA] unexpected multiple location for breakpoint
- References: <1290474625-1582-1-git-send-email-brobecker@adacore.com> <20101126172942.GK2634@adacore.com> <20101127183532.GA10136@caradoc.them.org> <20101210122337.GC2596@adacore.com> <20101228112546.GB2436@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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?