Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PSETBKPT(3PROC)        Process Control Library Functions       PSETBKPT(3PROC)
   2 
   3 NAME
   4      Psetbkpt - set a breakpoint trap in a process
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      int
  11      Psetbkpt(struct ps_prochandle *P, uintptr_t address, ulong_t *saved);
  12 
  13 DESCRIPTION
  14      The Psetbkpt() function sets a breakpoint instruction at the address
  15      address in the process handle P.  The instruction that used to be set
  16      will be set in saved and should be retained.
  17 
  18      A breakpoint will remain in place until a subsequent call to
  19      Pdelbkpt(3PROC).  The value stored in saved should be passed as the third
  20      argument to Pdelbkpt(3PROC).
  21 
  22      When a process executes an instruction that has been replaced with a
  23      breakpoint it generates a FLTBPT trap causing the thread to stop.
  24 
  25      Note, breakpoints may only be set in active processes.  They may not be
  26      set in process handles that refer to core files, zombie processes, or
  27      files.


   1 PSETBKPT(3PROC)        Process Control Library Functions       PSETBKPT(3PROC)
   2 
   3 NAME
   4      Psetbkpt - set a breakpoint trap in a process
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Psetbkpt(struct ps_prochandle *P, uintptr_t address, ulong_t *saved);
  14 
  15 DESCRIPTION
  16      The Psetbkpt() function sets a breakpoint instruction at the address
  17      address in the process handle P.  The instruction that used to be set
  18      will be set in saved and should be retained.
  19 
  20      A breakpoint will remain in place until a subsequent call to
  21      Pdelbkpt(3PROC).  The value stored in saved should be passed as the third
  22      argument to Pdelbkpt(3PROC).
  23 
  24      When a process executes an instruction that has been replaced with a
  25      breakpoint it generates a FLTBPT trap causing the thread to stop.
  26 
  27      Note, breakpoints may only be set in active processes.  They may not be
  28      set in process handles that refer to core files, zombie processes, or
  29      files.