home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / PTRACE.H < prev    next >
Text File  |  1995-10-10  |  3KB  |  76 lines

  1. /*****************************************************************************/
  2. /* File:                                             IBM INTERNAL USE ONLY   */
  3. /*   ptrace.h                                                                */
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*   Contains all of the DosDebug commands and notification values           */
  7. /*                                                                           */
  8. /* History:                                                                  */
  9. /*                                                                           */
  10. /*   02/08/91 Creation of 32-bit SD86, from 16-bit version.                  */
  11. /*                                                                           */
  12. /*****************************************************************************/
  13.  
  14. typedef struct  {
  15.   ULONG   Pid;                          /* Debuggee Process id               */
  16.   ULONG   Tid;                          /* Debuggee Thread id                */
  17.   long    Cmd;                          /* Command or Notification           */
  18.   long    Value;                        /* Generic Data Value                */
  19.   ULONG   Addr;                         /* Debuggee Address                  */
  20.   ULONG   Buffer;                       /* Debugger Buffer Address           */
  21.   ULONG   Len;                          /* Length of Range                   */
  22.   ULONG   Index;                        /* Generic Identifier Index          */
  23.   ULONG   MTE;                          /* Module Table Entry Handle         */
  24.   ULONG   EAX;                          /* Register Set                      */
  25.   ULONG   ECX;
  26.   ULONG   EDX;
  27.   ULONG   EBX;
  28.   ULONG   ESP;
  29.   ULONG   EBP;
  30.   ULONG   ESI;
  31.   ULONG   EDI;
  32.   ULONG   EFlags;
  33.   ULONG   EIP;
  34.   ULONG   CSLim;
  35.   ULONG   CSBase;
  36.   UCHAR   CSAcc;
  37.   UCHAR   CSAtr;
  38.   USHORT  CS;
  39.   ULONG   DSLim;
  40.   ULONG   DSBase;
  41.   UCHAR   DSAcc;
  42.   UCHAR   DSAtr;
  43.   USHORT  DS;
  44.   ULONG   ESLim;
  45.   ULONG   ESBase;
  46.   UCHAR   ESAcc;
  47.   UCHAR   ESAtr;
  48.   USHORT  ES;
  49.   ULONG   FSLim;
  50.   ULONG   FSBase;
  51.   UCHAR   FSAcc;
  52.   UCHAR   FSAtr;
  53.   USHORT  FS;
  54.   ULONG   GSLim;
  55.   ULONG   GSBase;
  56.   UCHAR   GSAcc;
  57.   UCHAR   GSAtr;
  58.   USHORT  GS;
  59.   ULONG   SSLim;
  60.   ULONG   SSBase;
  61.   UCHAR   SSAcc;
  62.   UCHAR   SSAtr;
  63.   USHORT  SS;
  64. } PtraceBuffer;
  65.  
  66.  
  67. #define DBG_L_386         1
  68. #define DBG_C_Continue    27
  69. #define DBG_CO_387        1
  70.  
  71. #define DBG_W_Global      0x00000001
  72. #define DBG_W_Local       0x00000002
  73. #define DBG_W_Execute     0x00010000
  74. #define DBG_W_Write       0x00020000
  75. #define DBG_W_ReadWrite   0x00030000
  76.