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 breakpoint trap in a process
25 .Fa "struct ps_prochandle *P"
26 .Fa "uintptr_t address"
32 function sets a breakpoint instruction at the address
36 The instruction that used to be set will be set in
38 and should be retained.
40 A breakpoint will remain in place until a subsequent call to
44 should be passed as the third argument to
47 When a process executes an instruction that has been replaced with a
48 breakpoint it generates a
51 causing the thread to stop.
53 Note, breakpoints may only be set in active processes. They may not be
54 set in process handles that refer to core files, zombie processes, or
57 Upon successful completion, the
59 function sets the breakpoint and
66 is set to indicate the error.
68 For a full list of possible errors see the
75 function will fail if:
79 does not refer to an active process.
81 A breakpoint instruction was already written by another debugger.
83 .Sh INTERFACE STABILITY