GDB does not detect the hardware watchpoints feature of Power 6. Testcase is provided at: http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/powerpc-debugreg.c?cvsroot=systemtap == powerpc-debugreg at: http://sourceware.org/systemtap/wiki/utrace/tests Description of problem: GDB does not detect the hardware watchpoints feature of Power 6. Version-Release number of selected component (if applicable): kernel-2.6.23.1-42.fc8.ppc64 How reproducible: Steps to Reproduce: 1. wget http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/powerpc-debugreg.c?cvsroot=systemtap == powerpc-debugreg at: http://sourceware.org/systemtap/wiki/utrace/tests 2. gcc -o powerpc-debugreg powerpc-debugreg.c -Wall -ggdb2 -D_GNU_SOURCE 3. ./powerpc-debugreg; echo $? Actual results: powerpc-debugreg: powerpc-debugreg.c:77: main: Assertion `0' failed. powerpc-debugreg: powerpc-debugreg.c:115: main: Assertion `((((__extension__ (((union { __typeof(status) __in; int __i; }) { .__in = (status) }).__i))) & 0xff00) >> 8) == 5' failed. Aborted 134 [ The error may be different, do not have the F7-GOLD ppc64 handy here. ] Expected results: 0 Additional info:
Created attachment 261901 [details] kernel fix by Roland McGrath.
Fixed in kernel-2.6.23.1-49.fc8.ppc64: * Tue Nov 06 2007 Chuck Ebbert <cebbert> - update utrace