Skip to content

MIPS: Hardware watch register support for gdb (version 3).

David Daney linux-mips lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 of 6 patches 2 repliesIn review

Changes from the previous version from the cover letter

* Agreement from gdb maintainers that the ptrace interface is workable.

* Work around for watchhi registers that do not report the I, R, and W condition bits.

* General cleanup, including making much less code conditionally compiled.

5 of 6 patches are in this archive. The cover letter announces 6.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/6MIPS: Add HARDWARE_WATCHPOINTS definitions and support code.arch/mips/kernel/Makefile arch/mips/kernel/watch.c include/asm-mips/cpu-info.h +3 more+223 -10 replies
3/6MIPS: Probe watch registers and report configuration.arch/mips/kernel/cpu-probe.c arch/mips/kernel/proc.c+10 -20 replies
4/6MIPS: Watch exception handling for HARDWARE_WATCHPOINTS.arch/mips/kernel/genex.S arch/mips/kernel/traps.c+13 -50 replies
5/6MIPS: Scheduler support for HARDWARE_WATCHPOINTS.include/asm-mips/system.h+2 -00 replies
6/6MIPS: Ptrace support for HARDWARE_WATCHPOINTSarch/mips/kernel/ptrace.c arch/mips/kernel/ptrace32.c include/asm-mips/ptrace.h+142 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Patch 0/6] MIPS: Hardware watch register support for gdb (version 3).

Esteemed kernel hackers,

To follow is my third pass at MIPS watch register support.

This version has been tested on:

* MIPS 4KEc (mips32) with a single set of watch registers watchhi not reporting I, R, and W conditions.

* MIPS 4KEc (mips32r2) with four sets of watch registers.

* R5000 SGI O2 (mips4 64bit) with no watch register support.

The patches are against 2.6.27-rc4

Changes from the previous version:

* Agreement from gdb maintainers that the ptrace interface is workable.

* Work around for watchhi registers that do not report the I, R, and W condition bits.

* General cleanup, including making much less code conditionally compiled.

To really test the patch you will need a patched gdb. My current gdb patch is here:

http://sourceware.org/ml/gdb-patches/2008-08/msg00650.html

If you have any comments or questions please let me know.

David Daney