This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Failure to stop at duplicate breakpoints
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: "Andrew Burgess" <aburgess at broadcom dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 20 Sep 2012 15:40:22 -0300
- Subject: Re: [PATCH] Failure to stop at duplicate breakpoints
- References: <505B31C2.5010203@broadcom.com>
On Thursday, September 20 2012, Andrew Burgess wrote:
> When two breakpoints are created at the same location, one of them is
> marked as a duplicate. When gdb inserts the breakpoints we only
> really insert one breakpoint at any unique location.
>
> By creating duplicate breakpoints and deleting or disabling them in
> the right order it is possible to get into a state where gdb has a
> single breakpoint with a single location, but that location is marked
> duplicate and so is never inserted, with the result we don't stop at
> the breakpoint.
>
> Patch and test included below.
Thanks for the patches, but your mail client messed with them, probably.
They are malformed in several places.
--
Sergio