2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
19 .Nd set a watchpoint in a process
26 .Fa "struct ps_prochandle *P"
27 .Fa "const prwatch_t *wp"
32 function adds a watchpoint to the process handle
34 Allowing the hardware to generate a trap when the specified area is
36 The watchpoint's parameters are described in
38 For more information on watchpoints and the
44 The watched area will persist until a subsequent call to
47 Note, only active processes support watchpoints.
48 It is an error to call this function on process handles that correspond to core
49 files, zombie processes, or files.
51 Upon successful completion, the
55 and installs the watchpoint in
63 For a full list of possible errors see the
70 function will fail if:
74 does not refer to an active process.
76 .Sh INTERFACE STABILITY