1 #ifndef _LINUX_ELFCORE_H
2 #define _LINUX_ELFCORE_H
4 #include <linux/types.h>
5 #include <linux/signal.h>
6 #include <linux/time.h>
7 #include <linux/ptrace.h>
8 #include <linux/user.h>
12 int si_signo
; /* signal number */
13 int si_code
; /* extra code */
14 int si_errno
; /* errno */
20 typedef elf_greg_t greg_t
;
21 typedef elf_gregset_t gregset_t
;
22 typedef elf_fpregset_t fpregset_t
;
23 typedef elf_fpxregset_t fpxregset_t
;
24 #define NGREG ELF_NGREG
28 * Definitions to generate Intel SVR4-like core files.
29 * These mostly have the same names as the SVR4 types with "elf_"
30 * tacked on the front to prevent clashes with linux definitions,
31 * and the typedef forms have been avoided. This is mostly like
32 * the SVR4 structure, but more Linuxy, with things that Linux does
33 * not support and which gdb doesn't really use excluded.
34 * Fields present but not used are marked with "XXX".
39 long pr_flags
; /* XXX Process flags */
40 short pr_why
; /* XXX Reason for process halt */
41 short pr_what
; /* XXX More detailed reason */
43 struct elf_siginfo pr_info
; /* Info associated with signal */
44 short pr_cursig
; /* Current signal */
45 unsigned long pr_sigpend
; /* Set of pending signals */
46 unsigned long pr_sighold
; /* Set of held signals */
48 struct sigaltstack pr_altstack
; /* Alternate stack info */
49 struct sigaction pr_action
; /* Signal action for current sig */
55 struct timeval pr_utime
; /* User time */
56 struct timeval pr_stime
; /* System time */
57 struct timeval pr_cutime
; /* Cumulative user time */
58 struct timeval pr_cstime
; /* Cumulative system time */
60 long pr_instr
; /* Current instruction */
62 elf_gregset_t pr_reg
; /* GP registers */
63 int pr_fpvalid
; /* True if math co-processor being used. */
66 #define ELF_PRARGSZ (80) /* Number of chars for args */
70 char pr_state
; /* numeric process state */
71 char pr_sname
; /* char for pr_state */
72 char pr_zomb
; /* zombie */
73 char pr_nice
; /* nice val */
74 unsigned long pr_flag
; /* flags */
75 __kernel_uid_t pr_uid
;
76 __kernel_gid_t pr_gid
;
77 pid_t pr_pid
, pr_ppid
, pr_pgrp
, pr_sid
;
79 char pr_fname
[16]; /* filename of executable */
80 char pr_psargs
[ELF_PRARGSZ
]; /* initial part of arg list */
84 typedef struct elf_prstatus prstatus_t
;
85 typedef struct elf_prpsinfo prpsinfo_t
;
86 #define PRARGSZ ELF_PRARGSZ
89 #endif /* _LINUX_ELFCORE_H */