Rizin
unix-like reverse engineering framework and cli tools
darwin-x86.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 eip\n"
6  "=SP esp\n"
7  "=BP ebp\n"
8  "=A0 eax\n"
9  "=A1 ebx\n"
10  "=A2 ecx\n"
11  "=A3 edi\n"
12  "=SN eax\n"
13  "=ZF zf\n"
14  "=OF of\n"
15  "=SF sf\n"
16  "=CF cf\n"
17  "gpr eax .32 0 0\n"
18  "gpr ax .16 0 0\n"
19  "gpr ah .8 1 0\n"
20  "gpr al .8 0 0\n"
21  "gpr ebx .32 4 0\n"
22  "gpr bx .16 4 0\n"
23  "gpr bh .8 5 0\n"
24  "gpr bl .8 4 0\n"
25  "gpr ecx .32 8 0\n"
26  "gpr cx .16 8 0\n"
27  "gpr ch .8 9 0\n"
28  "gpr cl .8 8 0\n"
29  "gpr edx .32 12 0\n"
30  "gpr dx .16 12 0\n"
31  "gpr dh .8 13 0\n"
32  "gpr dl .8 12 0\n"
33  "gpr edi .32 16 0\n"
34  "gpr esi .32 20 0\n"
35  "gpr ebp .32 24 0\n"
36  "gpr esp .32 28 0\n"
37  "seg ss .32 32 0\n"
38  "gpr eflags .32 36 0 c1p.a.zstido.n.rv\n"
39  "gpr cf .1 .288 0 carry\n"
40  "gpr pf .1 .290 0 parity\n"
41  "gpr af .1 .292 0 adjust\n"
42  "gpr zf .1 .294 0 zero\n"
43  "gpr sf .1 .295 0 sign\n"
44  "gpr tf .1 .296 0 trap\n"
45  "gpr if .1 .297 0 interrupt\n"
46  "gpr df .1 .298 0 direction\n"
47  "gpr of .1 .299 0 overflow\n"
48  "gpr eip .32 40 0\n"
49  "drx dr0 .32 0 0\n"
50  "drx dr1 .32 4 0\n"
51  "drx dr2 .32 8 0\n"
52  "drx dr3 .32 12 0\n"
53  "drx dr4 .32 16 0\n"
54  "drx dr5 .32 20 0\n"
55  "drx dr6 .32 24 0\n"
56  "drx dr7 .32 28 0\n"
57  "seg@gpr cs .32 44 0\n"
58  "seg@gpr ds .32 48 0\n"
59  "seg@gpr es .32 52 0\n"
60  "seg@gpr fs .32 56 0\n"
61  "seg@gpr gs .32 60 0\n");
62 
63 /*
64 _STRUCT_X86_DEBUG_STATE32
65 {
66  unsigned int __dr0;
67  unsigned int __dr1;
68  unsigned int __dr2;
69  unsigned int __dr3;
70  unsigned int __dr4;
71  unsigned int __dr5;
72  unsigned int __dr6;
73  unsigned int __dr7;
74 };
75 #else
76 */
return strdup("=PC eip\n" "=SP esp\n" "=BP ebp\n" "=A0 eax\n" "=A1 ebx\n" "=A2 ecx\n" "=A3 edi\n" "=SN eax\n" "=ZF zf\n" "=OF of\n" "=SF sf\n" "=CF cf\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 ebx .32 4 0\n" "gpr bx .16 4 0\n" "gpr bh .8 5 0\n" "gpr bl .8 4 0\n" "gpr ecx .32 8 0\n" "gpr cx .16 8 0\n" "gpr ch .8 9 0\n" "gpr cl .8 8 0\n" "gpr edx .32 12 0\n" "gpr dx .16 12 0\n" "gpr dh .8 13 0\n" "gpr dl .8 12 0\n" "gpr edi .32 16 0\n" "gpr esi .32 20 0\n" "gpr ebp .32 24 0\n" "gpr esp .32 28 0\n" "seg ss .32 32 0\n" "gpr eflags .32 36 0 c1p.a.zstido.n.rv\n" "gpr cf .1 .288 0 carry\n" "gpr pf .1 .290 0 parity\n" "gpr af .1 .292 0 adjust\n" "gpr zf .1 .294 0 zero\n" "gpr sf .1 .295 0 sign\n" "gpr tf .1 .296 0 trap\n" "gpr if .1 .297 0 interrupt\n" "gpr df .1 .298 0 direction\n" "gpr of .1 .299 0 overflow\n" "gpr eip .32 40 0\n" "drx dr0 .32 0 0\n" "drx dr1 .32 4 0\n" "drx dr2 .32 8 0\n" "drx dr3 .32 12 0\n" "drx dr4 .32 16 0\n" "drx dr5 .32 20 0\n" "drx dr6 .32 24 0\n" "drx dr7 .32 28 0\n" "seg@gpr cs .32 44 0\n" "seg@gpr ds .32 48 0\n" "seg@gpr es .32 52 0\n" "seg@gpr fs .32 56 0\n" "seg@gpr gs .32 60 0\n")