4 /* IA32 compatible user structures for ptrace. These should be used for 32bit coredumps too. */
6 struct user_i387_ia32_struct
{
14 u32 st_space
[20]; /* 8*10 bytes for each FP-reg = 80 bytes */
17 /* FSAVE frame with extensions */
18 struct user32_fxsr_struct
{
21 unsigned short twd
; /* not compatible to 64bit twd */
29 int st_space
[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
30 int xmm_space
[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */
34 struct user_regs_struct32
{
35 __u32 ebx
, ecx
, edx
, esi
, edi
, ebp
, eax
;
36 unsigned short ds
, __ds
, es
, __es
;
37 unsigned short fs
, __fs
, gs
, __gs
;
39 unsigned short cs
, __cs
;
41 unsigned short ss
, __ss
;
45 struct user_regs_struct32 regs
; /* Where the registers are actually stored */
46 int u_fpvalid
; /* True if math co-processor being used. */
47 /* for this mess. Not yet used. */
48 struct user_i387_ia32_struct i387
; /* Math Co-processor registers. */
49 /* The rest of this junk is to help gdb figure out what goes where */
50 __u32 u_tsize
; /* Text segment size (pages). */
51 __u32 u_dsize
; /* Data segment size (pages). */
52 __u32 u_ssize
; /* Stack segment size (pages). */
53 __u32 start_code
; /* Starting virtual address of text. */
54 __u32 start_stack
; /* Starting virtual address of stack area.
55 This is actually the bottom of the stack,
56 the top of the stack is always found in the
58 __u32 signal
; /* Signal that caused the core dump. */
59 int reserved
; /* No __u32er used */
60 __u32 u_ar0
; /* Used by gdb to help find the values for */
62 __u32 u_fpstate
; /* Math Co-processor pointer. */
63 __u32 magic
; /* To uniquely identify a core file */
64 char u_comm
[32]; /* User command that was responsible */