breakpoints/1977: Hardware watchpoints can not be deleted, only disabled

Daniel Jacobowitz drow@false.org
Tue Jul 26 20:08:00 GMT 2005


The following reply was made to PR breakpoints/1977; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: gdb-bug@haydon.net
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1977: Hardware watchpoints can not be deleted, only disabled
Date: Tue, 26 Jul 2005 15:58:23 -0400

 On Tue, Jul 26, 2005 at 07:47:25PM -0000, gdb-bug@haydon.net wrote:
 > watchpoint debugging fails when trying to define and delete many
 > watchpoints during a gdb session.
 > 
 > gdb doesn't appear to actually delete the watchpoints. e.g.
 > watch/breakpoint numbers aren't reused, e.g. after defining but
 > having deleted most of the watchpoints it fails because it appears to
 > erroneously maintain the defined set of watchpoints.
 
 Watchpoint numbers aren't supposed to be reused.
 
 > Create say 20 watchpoints, delete all but the last one which should
 > leave one watchpoint.  Resume execution...  gdb fails and complains
 > about too many hardware watchpoints.
 
 I can't reproduce this.  Can you attach a transcript?
 
 -- 
 Daniel Jacobowitz
 CodeSourcery, LLC



More information about the Gdb-prs mailing list