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
|
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: x32-core.xml */
#include "arch/tdesc.h"
static int
create_feature_i386_x32_core (struct target_desc *result, long regnum)
{
struct tdesc_feature *feature;
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.core", "x32-core.xml");
tdesc_type_with_fields *type_with_fields;
type_with_fields = tdesc_create_flags (feature, "i386_eflags", 4);
tdesc_add_flag (type_with_fields, 0, "CF");
tdesc_add_flag (type_with_fields, 1, "");
tdesc_add_flag (type_with_fields, 2, "PF");
tdesc_add_flag (type_with_fields, 4, "AF");
tdesc_add_flag (type_with_fields, 6, "ZF");
tdesc_add_flag (type_with_fields, 7, "SF");
tdesc_add_flag (type_with_fields, 8, "TF");
tdesc_add_flag (type_with_fields, 9, "IF");
tdesc_add_flag (type_with_fields, 10, "DF");
tdesc_add_flag (type_with_fields, 11, "OF");
tdesc_add_flag (type_with_fields, 14, "NT");
tdesc_add_flag (type_with_fields, 16, "RF");
tdesc_add_flag (type_with_fields, 17, "VM");
tdesc_add_flag (type_with_fields, 18, "AC");
tdesc_add_flag (type_with_fields, 19, "VIF");
tdesc_add_flag (type_with_fields, 20, "VIP");
tdesc_add_flag (type_with_fields, 21, "ID");
tdesc_create_reg (feature, "rax", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "rbx", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "rcx", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "rdx", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "rsi", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "rdi", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "rbp", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "rsp", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r8", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r9", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r10", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r11", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r12", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r13", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r14", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r15", regnum++, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "rip", regnum++, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "eflags", regnum++, 1, NULL, 32, "i386_eflags");
tdesc_create_reg (feature, "cs", regnum++, 1, NULL, 32, "int32");
tdesc_create_reg (feature, "ss", regnum++, 1, NULL, 32, "int32");
tdesc_create_reg (feature, "ds", regnum++, 1, NULL, 32, "int32");
tdesc_create_reg (feature, "es", regnum++, 1, NULL, 32, "int32");
tdesc_create_reg (feature, "fs", regnum++, 1, NULL, 32, "int32");
tdesc_create_reg (feature, "gs", regnum++, 1, NULL, 32, "int32");
tdesc_create_reg (feature, "st0", regnum++, 1, NULL, 80, "i387_ext");
tdesc_create_reg (feature, "st1", regnum++, 1, NULL, 80, "i387_ext");
tdesc_create_reg (feature, "st2", regnum++, 1, NULL, 80, "i387_ext");
tdesc_create_reg (feature, "st3", regnum++, 1, NULL, 80, "i387_ext");
tdesc_create_reg (feature, "st4", regnum++, 1, NULL, 80, "i387_ext");
tdesc_create_reg (feature, "st5", regnum++, 1, NULL, 80, "i387_ext");
tdesc_create_reg (feature, "st6", regnum++, 1, NULL, 80, "i387_ext");
tdesc_create_reg (feature, "st7", regnum++, 1, NULL, 80, "i387_ext");
tdesc_create_reg (feature, "fctrl", regnum++, 1, "float", 32, "int");
tdesc_create_reg (feature, "fstat", regnum++, 1, "float", 32, "int");
tdesc_create_reg (feature, "ftag", regnum++, 1, "float", 32, "int");
tdesc_create_reg (feature, "fiseg", regnum++, 1, "float", 32, "int");
tdesc_create_reg (feature, "fioff", regnum++, 1, "float", 32, "int");
tdesc_create_reg (feature, "foseg", regnum++, 1, "float", 32, "int");
tdesc_create_reg (feature, "fooff", regnum++, 1, "float", 32, "int");
tdesc_create_reg (feature, "fop", regnum++, 1, "float", 32, "int");
return regnum;
}
|