This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/10557] HW watchpoints silently degrade into SW ones
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 25 Aug 2010 20:50:34 -0000
- Subject: [Bug breakpoints/10557] HW watchpoints silently degrade into SW ones
- References: <20090824231914.10557.ppluzhnikov@google.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.