rizin/libr/debug/p/native/reg.c
2015-08-19 17:31:00 +02:00

58 lines
1.1 KiB
C

// included from p/debug_native.c
// splitted for better reading/cleaning up
static const char *r_debug_native_reg_profile(RDebug *dbg) {
#if __WINDOWS__
/*_______
| | |
|___|___|
| | |
|___|___|
*/
if (dbg->bits & R_SYS_BITS_64) {
#include "reg/windows-x64.h"
} else {
#include "reg/windows-x86.h"
}
#elif (__OpenBSD__ || __NetBSD__)
/* __.--..__
\-/-/-/ _ __ _.--' _.--'
_ \' \ \\ '' `------.__
\\/ __)_) \\ ____..---'
//\ o o \\----'
/ <_/ 3 \\
\_,_,__,_/ \\
*/
#if __i386__
#include "reg/netbsd-x86.h"
#elif __x86_64__
#include "reg/netbsd-x64.h"
#else
#error "Unsupported BSD architecture"
#endif
#elif __KFBSD__ || __FreeBSD__
/*
/( ).
\ \__ /|
/ _ '-/ |
(/\/ | \
/ / | \ )
O O _/ |
(__) __ /
\___/ /
`----'
*/
#if __i386__ || __i386
#include "reg/kfbsd-x86.h"
#elif __x86_64__ || __amd64__
#include "reg/kfbsd-x64.h"
#else
#error "Unsupported BSD architecture"
#endif
#else
#warning Unsupported Kernel
return NULL;
#endif
}