Rizin
unix-like reverse engineering framework and cli tools
darwin-x64.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2015 pancake <pancake@nopcode.org>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 return strdup(
5  "=PC rip\n"
6  "=SP rsp\n"
7  "=BP rbp\n"
8  "=SN rax\n"
9  "=R0 rax\n"
10  "=A0 rdi\n"
11  "=A1 rsi\n"
12  "=A2 rdx\n"
13  "=A3 rcx\n"
14  "=A4 r8\n"
15  "=A5 r9\n"
16  "=ZF zf\n"
17  "=OF of\n"
18  "=SF sf\n"
19  "=CF cf\n"
20  "gpr rax .64 0 0\n"
21  "gpr eax .32 0 0\n"
22  "gpr ax .16 0 0\n"
23  "gpr ah .8 1 0\n"
24  "gpr al .8 0 0\n"
25  "gpr rbx .64 8 0\n"
26  "gpr ebx .32 8 0\n"
27  "gpr bx .16 8 0\n"
28  "gpr bh .8 9 0\n"
29  "gpr bl .8 8 0\n"
30  "gpr rcx .64 16 0\n"
31  "gpr ecx .32 16 0\n"
32  "gpr cx .16 16 0\n"
33  "gpr ch .8 17 0\n"
34  "gpr cl .8 16 0\n"
35  "gpr rdx .64 24 0\n"
36  "gpr edx .32 24 0\n"
37  "gpr dx .16 24 0\n"
38  "gpr dh .8 25 0\n"
39  "gpr dl .8 24 0\n"
40  "gpr rdi .64 32 0\n"
41  "gpr edi .32 32 0\n"
42  "gpr di .16 32 0\n"
43  "gpr dil .8 32 0\n"
44  "gpr rsi .64 40 0\n"
45  "gpr esi .32 40 0\n"
46  "gpr si .16 40 0\n"
47  "gpr sil .8 40 0\n"
48  "gpr rbp .64 48 0\n"
49  "gpr ebp .32 48 0\n"
50  "gpr bp .16 48 0\n"
51  "gpr bpl .8 48 0\n"
52  "gpr rsp .64 56 0\n"
53  "gpr esp .32 56 0\n"
54  "gpr sp .16 56 0\n"
55  "gpr spl .8 56 0\n"
56  "gpr r8 .64 64 0\n"
57  "gpr r8d .32 64 0\n"
58  "gpr r8w .16 64 0\n"
59  "gpr r8b .8 64 0\n"
60  "gpr r9 .64 72 0\n"
61  "gpr r9d .32 72 0\n"
62  "gpr r9w .16 72 0\n"
63  "gpr r9b .8 72 0\n"
64  "gpr r10 .64 80 0\n"
65  "gpr r10d .32 80 0\n"
66  "gpr r10w .16 80 0\n"
67  "gpr r10b .8 80 0\n"
68  "gpr r11 .64 88 0\n"
69  "gpr r11d .32 88 0\n"
70  "gpr r11w .16 88 0\n"
71  "gpr r11b .8 88 0\n"
72  "gpr r12 .64 96 0\n"
73  "gpr r12d .32 96 0\n"
74  "gpr r12w .16 96 0\n"
75  "gpr r12b .8 96 0\n"
76  "gpr r13 .64 104 0\n"
77  "gpr r13d .32 104 0\n"
78  "gpr r13w .16 104 0\n"
79  "gpr r13b .8 104 0\n"
80  "gpr r14 .64 112 0\n"
81  "gpr r14d .32 112 0\n"
82  "gpr r14w .16 112 0\n"
83  "gpr r14b .8 112 0\n"
84  "gpr r15 .64 120 0\n"
85  "gpr r15d .32 120 0\n"
86  "gpr r15w .16 120 0\n"
87  "gpr r15b .8 120 0\n"
88  "gpr rip .64 128 0\n"
89  "gpr eflags .32 136 0 c1p.a.zstido.n.rv\n"
90  "gpr rflags .64 136 0 c1p.a.zstido.n.rv\n"
91  "gpr cf .1 .1088 0 carry\n"
92  // 1090
93  "gpr pf .1 .1090 0 parity\n"
94  // 1091
95  "gpr af .1 .1092 0 adjust\n"
96  // 1093
97  "gpr zf .1 .1094 0 zero\n"
98  "gpr sf .1 .1095 0 sign\n"
99  "gpr tf .1 .1096 0 trap\n"
100  "gpr if .1 .1097 0 interrupt\n"
101  "gpr df .1 .1098 0 direction\n"
102  "gpr of .1 .1099 0 overflow\n"
103  "seg@gpr cs .64 136 0\n"
104  "seg@gpr fs .64 144 0\n"
105  "seg@gpr gs .64 152 0\n"
106 
107  "drx dr0 .64 0 0\n"
108  "drx dr1 .64 8 0\n"
109  "drx dr2 .64 16 0\n"
110  "drx dr3 .64 24 0\n"
111  "drx dr4 .64 32 0\n"
112  "drx dr5 .64 40 0\n"
113  "drx dr6 .64 48 0\n"
114  "drx dr7 .64 56 0\n");
115 
116 /*_STRUCT_X86_DEBUG_STATE64
117 {
118  __uint64_t dr0;
119  __uint64_t dr1;
120  __uint64_t dr2;
121  __uint64_t dr3;
122  __uint64_t dr4;
123  __uint64_t dr5;
124  __uint64_t dr6;
125  __uint64_t dr7;
126 };
127 */
return strdup("=PC rip\n" "=SP rsp\n" "=BP rbp\n" "=SN rax\n" "=R0 rax\n" "=A0 rdi\n" "=A1 rsi\n" "=A2 rdx\n" "=A3 rcx\n" "=A4 r8\n" "=A5 r9\n" "=ZF zf\n" "=OF of\n" "=SF sf\n" "=CF cf\n" "gpr rax .64 0 0\n" "gpr eax .32 0 0\n" "gpr ax .16 0 0\n" "gpr ah .8 1 0\n" "gpr al .8 0 0\n" "gpr rbx .64 8 0\n" "gpr ebx .32 8 0\n" "gpr bx .16 8 0\n" "gpr bh .8 9 0\n" "gpr bl .8 8 0\n" "gpr rcx .64 16 0\n" "gpr ecx .32 16 0\n" "gpr cx .16 16 0\n" "gpr ch .8 17 0\n" "gpr cl .8 16 0\n" "gpr rdx .64 24 0\n" "gpr edx .32 24 0\n" "gpr dx .16 24 0\n" "gpr dh .8 25 0\n" "gpr dl .8 24 0\n" "gpr rdi .64 32 0\n" "gpr edi .32 32 0\n" "gpr di .16 32 0\n" "gpr dil .8 32 0\n" "gpr rsi .64 40 0\n" "gpr esi .32 40 0\n" "gpr si .16 40 0\n" "gpr sil .8 40 0\n" "gpr rbp .64 48 0\n" "gpr ebp .32 48 0\n" "gpr bp .16 48 0\n" "gpr bpl .8 48 0\n" "gpr rsp .64 56 0\n" "gpr esp .32 56 0\n" "gpr sp .16 56 0\n" "gpr spl .8 56 0\n" "gpr r8 .64 64 0\n" "gpr r8d .32 64 0\n" "gpr r8w .16 64 0\n" "gpr r8b .8 64 0\n" "gpr r9 .64 72 0\n" "gpr r9d .32 72 0\n" "gpr r9w .16 72 0\n" "gpr r9b .8 72 0\n" "gpr r10 .64 80 0\n" "gpr r10d .32 80 0\n" "gpr r10w .16 80 0\n" "gpr r10b .8 80 0\n" "gpr r11 .64 88 0\n" "gpr r11d .32 88 0\n" "gpr r11w .16 88 0\n" "gpr r11b .8 88 0\n" "gpr r12 .64 96 0\n" "gpr r12d .32 96 0\n" "gpr r12w .16 96 0\n" "gpr r12b .8 96 0\n" "gpr r13 .64 104 0\n" "gpr r13d .32 104 0\n" "gpr r13w .16 104 0\n" "gpr r13b .8 104 0\n" "gpr r14 .64 112 0\n" "gpr r14d .32 112 0\n" "gpr r14w .16 112 0\n" "gpr r14b .8 112 0\n" "gpr r15 .64 120 0\n" "gpr r15d .32 120 0\n" "gpr r15w .16 120 0\n" "gpr r15b .8 120 0\n" "gpr rip .64 128 0\n" "gpr eflags .32 136 0 c1p.a.zstido.n.rv\n" "gpr rflags .64 136 0 c1p.a.zstido.n.rv\n" "gpr cf .1 .1088 0 carry\n" "gpr pf .1 .1090 0 parity\n" "gpr af .1 .1092 0 adjust\n" "gpr zf .1 .1094 0 zero\n" "gpr sf .1 .1095 0 sign\n" "gpr tf .1 .1096 0 trap\n" "gpr if .1 .1097 0 interrupt\n" "gpr df .1 .1098 0 direction\n" "gpr of .1 .1099 0 overflow\n" "seg@gpr cs .64 136 0\n" "seg@gpr fs .64 144 0\n" "seg@gpr gs .64 152 0\n" "drx dr0 .64 0 0\n" "drx dr1 .64 8 0\n" "drx dr2 .64 16 0\n" "drx dr3 .64 24 0\n" "drx dr4 .64 32 0\n" "drx dr5 .64 40 0\n" "drx dr6 .64 48 0\n" "drx dr7 .64 56 0\n")