summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/sys/i386_set_watch.3
diff options
context:
space:
mode:
authorbsd <bsd@FreeBSD.org>2006-05-03 17:33:29 +0000
committerbsd <bsd@FreeBSD.org>2006-05-03 17:33:29 +0000
commitbdb4511692e5f8f451afec01f25f5cf0982ca325 (patch)
tree256f9255ffce1ff1bb9475d4b3e9dd9dea803571 /lib/libc/i386/sys/i386_set_watch.3
parent5ac8fc29a50d17243ef3f7f055a226f1a2aba36f (diff)
downloadFreeBSD-src-bdb4511692e5f8f451afec01f25f5cf0982ca325.zip
FreeBSD-src-bdb4511692e5f8f451afec01f25f5cf0982ca325.tar.gz
A few minor wording changes and a clarification about error conditions.
Diffstat (limited to 'lib/libc/i386/sys/i386_set_watch.3')
-rw-r--r--lib/libc/i386/sys/i386_set_watch.320
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libc/i386/sys/i386_set_watch.3 b/lib/libc/i386/sys/i386_set_watch.3
index 15b8497..e3195fc 100644
--- a/lib/libc/i386/sys/i386_set_watch.3
+++ b/lib/libc/i386/sys/i386_set_watch.3
@@ -86,24 +86,24 @@ You must use
.Xr ptrace 2
to retrieve and install the debug register values for a process.
.Sh RETURN VALUES
-The
+On success, the
.Fn i386_clr_watch
-function
-returns 0 on success, or -1 if
+function returns 0.
+On error, -1 returned which indicates that
.Fa watchnum
is invalid (not in the range of 0-3).
+If the specified watchnum was already disabled, no error is returned.
.Pp
-The
+On success, the
.Fn i386_set_watch
-function
-will return the
+function returns the
.Fa watchnum
-argument, or the watchnum actually used in the case that
+argument, or the watchnum actually used in the case where the specified
.Fa watchnum
-is -1 on success.
-On error,
+was -1.
+On error, the
.Fn i386_set_watch
-will return -1 indicating that the watchpoint could not be set up
+function returns -1 indicating that the watchpoint could not established
because either no more watchpoints are available, or
.Fa watchnum ,
.Fa size ,
OpenPOWER on IntegriCloud