This is the mail archive of the gdb-prs@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]

[Bug breakpoints/10557] HW watchpoints silently degrade into SW ones


------- Additional Comments From pedro at codesourcery dot com  2010-08-25 20:50 -------
I don't see evidence of degeneration into single-stepping:

> infrun: TARGET_WAITKIND_STOPPED
> infrun: stop_pc = 0x400507
> infrun: stopped by watchpoint
> infrun: stopped data address = 0x7fffffffd9f0
> infrun: no stepping, continue
> infrun: resume (step=0, signal=0), trap_expected=0

It appears to me the target is continuously reporting that something is writing
to the address you are watching, but, if the watched expression evaluates to the
same at each of those, then gdb will silently resume the inferior again.
This is the nature of write watchpoints.  Try an access watchpoint instead (awatch).

Your testcase looks bogus to me.  The heap memory address you are watching in
the new run of the program is most likely being used for something else during
program startup?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=10557

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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