Bug 387741 - GDB hardware watchpoint support for Power.
Summary: GDB hardware watchpoint support for Power.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 8
Hardware: ppc64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 253117
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-16 22:19 UTC by Jan Kratochvil
Modified: 2007-11-30 22:12 UTC (History)
2 users (show)

Fixed In Version: kernel-2.6.23.1-49.fc8.ppc64
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-16 22:19:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
kernel fix by Roland McGrath. (4.23 KB, patch)
2007-11-16 22:19 UTC, Jan Kratochvil
no flags Details | Diff

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



Note You need to log in before you can comment on or make changes to this bug.