Red Hat Bugzilla – Bug 504374
kvm: hw DR_* watchpoint registers are ignored
Last modified: 2009-06-08 10:28:31 EDT
Description of problem:
GDB watchpoints do not work. There is a standalone testcase for it.
Version-Release number of selected component (if applicable):
longterm, it never worked, verified on:
kernel-220.127.116.11-155.fc11.x86_64 (both as KVM host and guest)
Steps to Reproduce:
wget -q -O watchpoint.c 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/watchpoint.c?cvsroot=systemtap'; gcc -Wall -g -o watchpoint watchpoint.c; ./watchpoint; echo $?
Return code 2 means the testcase missed the watchpoint to be hit.
Could you re-test with 2.6.30 from rawhide?
This was merged in 2.6.30-rc1:
Tested this version-in-KVM-on-version and it is now already working, thanks for the pointer: