blob: 4ad477d5b88d2111d9f51119fc06716e9ecbd854 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/******************************************************************************
* elfcore.h
*
* Based heavily on include/linux/elfcore.h from Linux 2.6.16
* Naming scheeme based on include/xen/elf.h (not include/linux/elfcore.h)
*
*/
#ifndef __ELFCOREC_H__
#define __ELFCOREC_H__
#include <xen/types.h>
#include <xen/elf.h>
#include <asm/elf.h>
#include <public/xen.h>
#define NT_PRSTATUS 1
typedef struct
{
int signo; /* signal number */
int code; /* extra code */
int errno; /* errno */
} ELF_Signifo;
/* These seem to be the same length on all architectures on Linux */
typedef int ELF_Pid;
typedef struct {
long tv_sec;
long tv_usec;
} ELF_Timeval;
/*
* Definitions to generate Intel SVR4-like core files.
* These mostly have the same names as the SVR4 types with "elf_"
* tacked on the front to prevent clashes with linux definitions,
* and the typedef forms have been avoided. This is mostly like
* the SVR4 structure, but more Linuxy, with things that Linux does
* not support and which gdb doesn't really use excluded.
*/
typedef struct
{
ELF_Signifo pr_info; /* Info associated with signal */
short pr_cursig; /* Current signal */
unsigned long pr_sigpend; /* Set of pending signals */
unsigned long pr_sighold; /* Set of held signals */
ELF_Pid pr_pid;
ELF_Pid pr_ppid;
ELF_Pid pr_pgrp;
ELF_Pid pr_sid;
ELF_Timeval pr_utime; /* User time */
ELF_Timeval pr_stime; /* System time */
ELF_Timeval pr_cutime; /* Cumulative user time */
ELF_Timeval pr_cstime; /* Cumulative system time */
ELF_Gregset pr_reg; /* GP registers - from asm header file */
int pr_fpvalid; /* True if math co-processor being used. */
} ELF_Prstatus;
typedef struct {
unsigned long xen_major_version;
unsigned long xen_minor_version;
unsigned long xen_extra_version;
unsigned long xen_changeset;
unsigned long xen_compiler;
unsigned long xen_compile_date;
unsigned long xen_compile_time;
unsigned long tainted;
#if defined(CONFIG_X86)
unsigned long xen_phys_start;
unsigned long dom0_pfn_to_mfn_frame_list_list;
#endif
} crash_xen_info_t;
#endif /* __ELFCOREC_H__ */
/*
* Local variables:
* mode: C
* c-file-style: "BSD"
* c-basic-offset: 4
* tab-width: 4
* indent-tabs-mode: nil
* End:
*/
|