From ed0010ed097b27a228d9a2f31851671fce2e0d09 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sat, 12 Feb 2000 18:33:54 +0000 Subject: Document the support in the kernel for hardware debug registers on the ix86 platform which allows for hardware watchpoints, etc... Submitted by: Brian Dean --- lib/libc/sys/ptrace.2 | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index 37eca05a3de7..551f41d1596f 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -202,6 +202,23 @@ it loads the traced process' floating-point registers from the .Aq Pa machine/reg.h ) pointed to by .Fa addr . +.It Dv PT_GETDBREGS +This request reads the traced process' debug registers into +the +.Dq Li "struct dbreg" +(defined in +.Aq Pa machine/reg.h ) +pointed to by +.Fa addr . +.It Dv PT_SETDBREGS +This request is the converse of +.Dv PT_GETDBREGS ; +it loads the traced process' debug registers from the +.Dq Li "struct dbreg" +(defined in +.Aq Pa machine/reg.h ) +pointed to by +.Fa addr . .El .Sh RETURN VALUES Some requests can cause @@ -250,8 +267,10 @@ was neither 0 nor a legal signal number. .Dv PT_GETREGS , .Dv PT_SETREGS , .Dv PT_GETFPREGS , +.Dv PT_SETFPREGS , +.Dv PT_GETDBREGS , or -.Dv PT_SETFPREGS +.Dv PT_SETDBREGS was attempted on a process with no valid register set. (This is normally true only of system processes.) .El -- cgit v1.3