ptrace.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* @(#)ptrace.h 1.1 86/07/07 SMI */
  2. /* Copyright 1984-1996 Wind River Systems, Inc. */
  3. /*
  4.  * Copyright (c) 1985 by Sun Microsystems, Inc.
  5.  */
  6. /*
  7. modification history
  8. --------------------
  9. 01f,27jun96,dbt  removed the coma after PTRACE_SETFPAREGS (spr 4357)
  10.  Updated copyright.
  11. 01e,22sep92,rrr  added support for c++
  12. 01d,04jul92,jcf  cleaned up.
  13. 01c,26may92,rrr  the tree shuffle
  14. 01b,04oct91,rrr  passed through the ansification filter
  15.   -changed copyright notice
  16. 01a,05oct90,shl  added copyright notice.
  17. */
  18. #ifndef __INCptraceh
  19. #define __INCptraceh
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /*
  24.  * Request values for the ptrace system call
  25.  */
  26. enum ptracereq {
  27. PTRACE_TRACEME = 0, /* 0, by tracee to begin tracing */
  28. PTRACE_CHILDDONE = 0, /* 0, tracee is done with his half */
  29. PTRACE_PEEKTEXT, /* 1, read word from text segment */
  30. PTRACE_PEEKDATA, /* 2, read word from data segment */
  31. PTRACE_PEEKUSER, /* 3, read word from user struct */
  32. PTRACE_POKETEXT, /* 4, write word into text segment */
  33. PTRACE_POKEDATA, /* 5, write word into data segment */
  34. PTRACE_POKEUSER, /* 6, write word into user struct */
  35. PTRACE_CONT, /* 7, continue process */
  36. PTRACE_KILL, /* 8, terminate process */
  37. PTRACE_SINGLESTEP, /* 9, single step process */
  38. PTRACE_ATTACH, /* 10, attach to an existing process */
  39. PTRACE_DETACH, /* 11, detach from a process */
  40. PTRACE_GETREGS, /* 12, get all registers */
  41. PTRACE_SETREGS, /* 13, set all registers */
  42. PTRACE_GETFPREGS, /* 14, get all floating point regs */
  43. PTRACE_SETFPREGS, /* 15, set all floating point regs */
  44. PTRACE_READDATA, /* 16, read data segment */
  45. PTRACE_WRITEDATA, /* 17, write data segment */
  46. PTRACE_READTEXT, /* 18, read text segment */
  47. PTRACE_WRITETEXT, /* 19, write text segment */
  48. PTRACE_GETFPAREGS, /* 20, get all fpa regs */
  49. PTRACE_SETFPAREGS /* 21, set all fpa regs */
  50. };
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif /* __INCptraceh */