This is the mail archive of the gdb@sources.redhat.com 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: Bug with watchpoints on Linux



On Wed, 21 Nov 2001, Pierre Muller wrote:

>    But at the second run, the program is never stopped because
> of the changes to this global variable.
> 
>    It seems like there is a problem with the hardware watchpoint
> resetting.

IIRC, GDB removes the watchpoints when the program exits.  You should see 
a message to that effect, and "info breakpoints" should reflect it.

If that's not what you see, it's possible that there's a bug somewhere.

You could try the maint comamnd show-debug-regs to see what is going on 
with watchpoints.


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