diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/box64context.h | 2 | ||||
| -rw-r--r-- | src/include/custommem.h | 2 | ||||
| -rw-r--r-- | src/include/debug.h | 2 | ||||
| -rw-r--r-- | src/include/mysignal.h | 2 | ||||
| -rw-r--r-- | src/include/symbolfuncs.h | 8 | ||||
| -rw-r--r-- | src/include/x64emu.h | 1 |
6 files changed, 12 insertions, 5 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h index 97c410ad..a3d651d2 100644 --- a/src/include/box64context.h +++ b/src/include/box64context.h @@ -278,8 +278,6 @@ void thread_set_emu(x64emu_t* emu); void thread_forget_emu(); x64emu_t* thread_get_emu(void); -// unlock mutex that are locked by current thread (for signal handling). Return a mask of unlock mutex -int unlockMutex(void); // relock the muxtex that were unlocked void relockMutex(int locks); diff --git a/src/include/custommem.h b/src/include/custommem.h index 5e883570..c9db05dc 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -118,8 +118,6 @@ void* find47bitBlockElf(size_t size, int mainbin, uintptr_t mask); void* find31bitBlockElf(size_t size, int mainbin, uintptr_t mask); int isBlockFree(void* hint, size_t size); -// unlock mutex that are locked by current thread (for signal handling). Return a mask of unlock mutex -int unlockCustommemMutex(void); // relock the muxtex that were unlocked void relockCustommemMutex(int locks); diff --git a/src/include/debug.h b/src/include/debug.h index 93268420..be216bd1 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -3,6 +3,8 @@ #include <stdint.h> #include <env.h> +#include "os.h" + typedef struct box64context_s box64context_t; extern box64env_t box64env; extern box64env_t* cur_box64env; diff --git a/src/include/mysignal.h b/src/include/mysignal.h index 8d4f84a6..22861634 100644 --- a/src/include/mysignal.h +++ b/src/include/mysignal.h @@ -11,6 +11,8 @@ typedef struct { typedef sigset_t __sigset_t; #define sigfillset(x) + +#define SIGTRAP 5 #endif #endif // __MYSIGNAL_H_ \ No newline at end of file diff --git a/src/include/symbolfuncs.h b/src/include/symbolfuncs.h new file mode 100644 index 00000000..ba99f923 --- /dev/null +++ b/src/include/symbolfuncs.h @@ -0,0 +1,8 @@ +#ifndef __SYMBOLFUNCS_H__ +#define __SYMBOLFUNCS_H__ + +#include <stdint.h> + +int PrintFunctionAddr(uintptr_t nextaddr, const char* text); // 0 if nothing was found + +#endif // __SYMBOLFUNCS_H__ \ No newline at end of file diff --git a/src/include/x64emu.h b/src/include/x64emu.h index e06620af..4b88f6ae 100644 --- a/src/include/x64emu.h +++ b/src/include/x64emu.h @@ -34,7 +34,6 @@ long double LD2localLD(void* ld); // long double (80bits pointer) -> long void LD2D(void* ld, void* d); // long double (80bits) -> double (64bits) void D2LD(void* d, void* ld); // double (64bits) -> long double (64bits) -int printFunctionAddr(uintptr_t nextaddr, const char* text); // 0 if nothing was found const char* getAddrFunctionName(uintptr_t addr); #endif //__X86EMU_H_ |