diff options
author | ru <ru@FreeBSD.org> | 2002-12-18 12:45:11 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-12-18 12:45:11 +0000 |
commit | 8746d263e1451855025dc83dde5176cc9f1fbe3f (patch) | |
tree | ee7f7ba4650cadf44410ca9a44676c72c96739b7 /lib/libc/i386/sys/i386_set_watch.3 | |
parent | 160081aef68b0dc49b79d3b7702b75671d9c06ff (diff) | |
download | FreeBSD-src-8746d263e1451855025dc83dde5176cc9f1fbe3f.zip FreeBSD-src-8746d263e1451855025dc83dde5176cc9f1fbe3f.tar.gz |
mdoc(7) police: "The .Fn function".
Diffstat (limited to 'lib/libc/i386/sys/i386_set_watch.3')
-rw-r--r-- | lib/libc/i386/sys/i386_set_watch.3 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/i386/sys/i386_set_watch.3 b/lib/libc/i386/sys/i386_set_watch.3 index 28f2261..8f02555 100644 --- a/lib/libc/i386/sys/i386_set_watch.3 +++ b/lib/libc/i386/sys/i386_set_watch.3 @@ -44,11 +44,15 @@ .Ft int .Fn i386_set_watch "int watchnum" "unsigned int watchaddr" "int size" "int access" "struct dbreg *d" .Sh DESCRIPTION +The .Fn i386_clr_watch +function will disable the indicated watch point within the specified debug register set. .Pp +The .Fn i386_set_watch +function will set up the specified debug registers as indicated by the parameters. The .Fa watchnum @@ -76,12 +80,16 @@ they manipulate the indicated debug register set. You must use .Xr ptrace 2 to retrieve and install the debug register values for a process. .Sh RETURN VALUES +The .Fn i386_clr_watch +function returns 0 on success, or -1 if .Fa watchnum is invalid (not in the range of 0-3). .Pp +The .Fn i386_set_watch +function will return the .Fa watchnum argument, or the watchnum actually used in the case that |