4 #include <asm/ptrace.h> /* needed for NUM_CR_WORDS */
5 #include "compat_linux.h" /* needed for psw_compat_t */
8 __u32 cr[NUM_CR_WORDS];
12 __u16 perc_atmid; /* 0x096 */
13 __u32 address; /* 0x098 */
14 __u8 access_id; /* 0x0a1 */
15 } per_lowcore_words32;
22 * Use these flags instead of setting em_instruction_fetch
23 * directly they are used so that single stepping can be
24 * switched on & off while not affecting other tracing
26 unsigned single_step : 1;
27 unsigned instruction_fetch : 1;
30 * These addresses are copied into cr10 & cr11 if single
31 * stepping is switched off
36 per_lowcore_words32 words;
40 struct user_regs_struct32
46 /* nb: there's a 4-byte hole here */
49 * These per registers are in here so that gdb can modify them
50 * itself as there is no "official" ptrace interface for hardware
51 * watchpoints. This is the way intel does it.
53 per_struct32 per_info;
54 u32 ieee_instruction_pointer; /* obsolete, always 0 */
58 /* We start with the registers, to mimic the way that "memory"
59 is returned from the ptrace(3,...) function. */
60 struct user_regs_struct32 regs; /* Where the registers are actually stored */
61 /* The rest of this junk is to help gdb figure out what goes where */
62 u32 u_tsize; /* Text segment size (pages). */
63 u32 u_dsize; /* Data segment size (pages). */
64 u32 u_ssize; /* Stack segment size (pages). */
65 u32 start_code; /* Starting virtual address of text. */
66 u32 start_stack; /* Starting virtual address of stack area.
67 This is actually the bottom of the stack,
68 the top of the stack is always found in the
70 s32 signal; /* Signal that caused the core dump. */
71 u32 u_ar0; /* Used by gdb to help find the values for */
73 u32 magic; /* To uniquely identify a core file */
74 char u_comm[32]; /* User command that was responsible */
84 #endif /* _PTRACE32_H */