home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / ptrace < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.9 KB  |  71 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/ptrace.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/ptrace.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    ptrace.h,v $
  8.  * Revision 1.1  95/01/11  10:19:36  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.4  88/08/10  18:35:24  brian
  12.  * Definitions of BKPT_SWI and SSHOT_SWI brought into line with the new
  13.  * layout of SWI numbers.
  14.  * 
  15.  * Revision 1.3  88/06/17  20:20:32  beta
  16.  * Acorn Unix initial beta version
  17.  * 
  18.  */
  19. /* @(#)ptrace.h    1.2 87/05/15 3.2/4.3NFSSRC */
  20. /*
  21.  * Copyright (c) 1980, 1986 Regents of the University of California.
  22.  * All rights reserved.  The Berkeley software License Agreement
  23.  * specifies the terms and conditions for redistribution.
  24.  *
  25.  *    @(#)ptrace.h    7.1 (Berkeley) 6/4/86
  26.  */
  27.  
  28. #ifndef _PTRACE_
  29. #define _PTRACE_
  30.  
  31. /*
  32.  * Machine dependent constants
  33.  */
  34. #ifdef KERNEL
  35. #include "../arm/trap.h"
  36. #else
  37. #include <arm/trap.h>
  38. #endif
  39.  
  40. #define PT_TRACE_ME    0    /* child declares it's being traced */
  41. #define PT_READ_I    1    /* read word in child's I space */
  42. #define PT_READ_D    2    /* read word in child's D space */
  43. #define PT_READ_U    3    /* read word in child's user structure */
  44. #define PT_WRITE_I    4    /* write word in child's I space */
  45. #define PT_WRITE_D    5    /* write word in child's D space */
  46. #define PT_WRITE_U    6    /* write word in child's user structure */
  47. #define PT_CONTINUE    7    /* continue the child */
  48. #define PT_KILL        8    /* kill the child process */
  49. #define PT_STEP        9    /* single step the child */
  50.  
  51. /*
  52.  *    This file contains definitions of SWI instructions used in the
  53.  *    ptrace system call.
  54.  *
  55.  *    The following SWI is the standard one which debuggers plant in the
  56.  *    instruction stream to set a breakpoint.
  57.  */
  58.  
  59. #define    BKPT_SWI    (0xEF000000 | SWI_OS_UNIX | SWI_PTRACE)
  60.  
  61. /*
  62.  *    The following SWI is planted automatically by the kernel to simulate
  63.  *    single-shotting.
  64.  */
  65.  
  66. #define    SSHOT_SWI    (0xEF000001 | SWI_OS_UNIX | SWI_PTRACE)
  67.  
  68. #endif
  69.  
  70. /* EOF ptrace.h */
  71.