stop (Process-Destructive)

void stop(void)

The stop action forces the process that is firing the enabled probe to stop when it next leaves the kernel, as if stopped by a proc action. The stop action can be used to stop a process at any DTrace probe point. This action can be used to capture a program in a particular state that would be difficult to achieve with a simple breakpoint and then attach a traditional debugger such as gdb to the process. You can also use the gcore utility to save the state of a stopped process in a core file for later analysis.