Rizin
unix-like reverse engineering framework and cli tools
reg.c
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2014 pancake <pancake@nopcode.org>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 // included from p/debug_native.c
5 // split for better reading/cleaning up
6 
8 #if __WINDOWS__
9 /*_______
10  | | |
11  |___|___|
12  | | |
13  |___|___|
14 */
15 #if defined(__arm64__)
16 #include "reg/windows-arm64.h"
17 #elif defined(__arm__)
18 #include "reg/windows-arm.h"
19 #elif defined(__x86_64__)
20 #include "reg/windows-x64.h"
21 #elif defined(__i386__)
22 #include "reg/windows-x86.h"
23 #endif
24 #elif (__OpenBSD__ || __NetBSD__)
25 /* __.--..__
26  \-/-/-/ _ __ _.--' _.--'
27  _ \' \ \\ '' `------.__
28  \\/ __)_) \\ ____..---'
29  //\ o o \\----'
30  / <_/ 3 \\
31  \_,_,__,_/ \\
32 */
33 #if __i386__
34 #include "reg/netbsd-x86.h"
35 #elif __x86_64__
36 #include "reg/netbsd-x64.h"
37 #else
38 #error "Unsupported BSD architecture"
39 #endif
40 
41 #elif __KFBSD__ || __FreeBSD__
42 /*
43  /( ).
44  \ \__ /|
45  / _ '-/ |
46  (/\/ | \
47  / / | \ )
48  O O _/ |
49  (__) __ /
50  \___/ /
51  `----'
52 */
53 #if __i386__ || __i386
54 #include "reg/kfbsd-x86.h"
55 #elif __x86_64__ || __amd64__
56 #include "reg/kfbsd-x64.h"
57 #elif __aarch64__
58 #include "reg/kfbsd-arm64.h"
59 #else
60 #error "Unsupported BSD architecture"
61 #endif
62 
63 #else
64 #warning Unsupported Kernel
65  return NULL;
66 #endif
67 }
#define NULL
Definition: cris-opc.c:27
static char * rz_debug_native_reg_profile(RzDebug *dbg)
Definition: reg.c:7
RzDebug * dbg
Definition: desil.c:30