Annotation of linux/include/sys/ptrace.h, revision 1.1

1.1     ! root        1: /* ptrace.h */
        !             2: /* structs and defines to help the user use the ptrace system call. */
        !             3: 
        !             4: #ifndef _SYS_PTRACE_H
        !             5: #define _SYS_PTRACE_H
        !             6: /* has the defines to get at the registers. */
        !             7: /* use ptrace (3 or 6, pid, PT_EXCL, data); to read or write
        !             8:    the processes registers. */
        !             9: 
        !            10: #define EBX 0
        !            11: #define ECX 1
        !            12: #define EDX 2
        !            13: #define ESI 3
        !            14: #define EDI 4
        !            15: #define EBP 5
        !            16: #define EAX 6
        !            17: #define DS 7
        !            18: #define ES 8
        !            19: #define FS 9
        !            20: #define GS 10
        !            21: #define ORIG_EAX 11
        !            22: #define EIP 12
        !            23: #define CS  13
        !            24: #define EFL 14
        !            25: #define UESP 15
        !            26: #define SS   16
        !            27: 
        !            28: 
        !            29: /* this struct defines the way the registers are stored on the 
        !            30:    stack during a system call. */
        !            31: 
        !            32: struct pt_regs {
        !            33:   long ebx;
        !            34:   long ecx;
        !            35:   long edx;
        !            36:   long esi;
        !            37:   long edi;
        !            38:   long ebp;
        !            39:   long eax;
        !            40:   long ds;
        !            41:   long es;
        !            42:   long fs;
        !            43:   long gs;
        !            44:   long orig_eax;
        !            45:   long eip;
        !            46:   long cs;
        !            47:   long eflags;
        !            48:   long esp;
        !            49:   long ss;
        !            50: };
        !            51: 
        !            52: #endif /* _SYS_PTRACE_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.