ptrace-abi.h 812 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef I386_PTRACE_ABI_H
  2. #define I386_PTRACE_ABI_H
  3. #define EBX 0
  4. #define ECX 1
  5. #define EDX 2
  6. #define ESI 3
  7. #define EDI 4
  8. #define EBP 5
  9. #define EAX 6
  10. #define DS 7
  11. #define ES 8
  12. #define FS 9
  13. #define GS 10
  14. #define ORIG_EAX 11
  15. #define EIP 12
  16. #define CS 13
  17. #define EFL 14
  18. #define UESP 15
  19. #define SS 16
  20. #define FRAME_SIZE 17
  21. /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
  22. #define PTRACE_GETREGS 12
  23. #define PTRACE_SETREGS 13
  24. #define PTRACE_GETFPREGS 14
  25. #define PTRACE_SETFPREGS 15
  26. #define PTRACE_GETFPXREGS 18
  27. #define PTRACE_SETFPXREGS 19
  28. #define PTRACE_OLDSETOPTIONS 21
  29. #define PTRACE_GET_THREAD_AREA 25
  30. #define PTRACE_SET_THREAD_AREA 26
  31. #define PTRACE_SYSEMU 31
  32. #define PTRACE_SYSEMU_SINGLESTEP 32
  33. #endif