Bug 387741

Summary: GDB hardware watchpoint support for Power.
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: kernelAssignee: Roland McGrath <roland>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 8CC: jan.kratochvil, roland
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.23.1-49.fc8.ppc64 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-16 22:19:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 253117    
Bug Blocks:    
Attachments:
Description Flags
kernel fix by Roland McGrath. none

Description Jan Kratochvil 2007-11-16 22:19:00 UTC
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:

Comment 1 Jan Kratochvil 2007-11-16 22:19:00 UTC
Created attachment 261901 [details]
kernel fix by Roland McGrath.

Comment 2 Jan Kratochvil 2007-11-16 22:19:57 UTC
Fixed in kernel-2.6.23.1-49.fc8.ppc64:
* Tue Nov 06 2007 Chuck Ebbert <cebbert>
- update utrace