debug_setcontext man page on SuSE

Man page or keyword search:  
man Server   14857 pages
apropos Keyword Search (all sections)
Output format
SuSE logo
[printable version]

DEBUG_SETCONTEXT(2)	   Linux Programmer's Manual	   DEBUG_SETCONTEXT(2)

NAME
       debug_setcontext - allows signal handlers to perform debug functions

SYNOPSIS
       #include <asm-powerpc/signal.h>

       int debug_setcontext(struct ucontext* ctx, int ndbg, struct sig_dbg_op* dbg, int r6, int r7, int r8, struct pt_regs* regs);

DESCRIPTION
       This  syscall  allows  signal  handlers to perform debug functions.  It
       allows the signal handler to turn on single-stepping, for instance, and
       the  thread  will  get a trap after executing the next instruction.  It
       can also (on supported PPC processors) turn on branch tracing and get a
       trap after the next branch instruction is executed.  This is useful for
       in-application debugging.  ctx provides the user context.   dbg	is  an
       array of debugging ops, where ndbg gives the number of elements in that
       array. These are processed sequentially.	 r6, r7, and  r8  are  unused.
       regs must be valid.

RETURN VALUE
       debug_setcontext()  returns  0  on success or one of the codes below on
       errors.

ERRORS
       -EINVAL
	      On any of the dbg elements has a dbg->dbg_type that  is  neither
	      SIG_DBG_SINGLE_STEPPING nor SIG_DBG_BRANCH_TRACING.

       -EFAULT
	      If access to the provided ctx is denied.

PORTABILITY
       This call exists on the PowerPC (not PPC64) architecture only.

Linux 2.6.17			 OCTOBER 2006		   DEBUG_SETCONTEXT(2)
[top]

List of man pages available for SuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net