* Add missing define for osx debugger on arm and powerpc

This commit is contained in:
pancake 2011-01-04 17:30:10 +01:00
parent 93413ab59e
commit 92f34b6183
1 changed files with 2 additions and 0 deletions

View File

@ -62,10 +62,12 @@ static int r_debug_native_reg_write(int pid, int tid, int type, const ut8* buf,
#include <mach/ppc/thread_status.h> #include <mach/ppc/thread_status.h>
#define R_DEBUG_REG_T ppc_thread_state_t #define R_DEBUG_REG_T ppc_thread_state_t
#define R_DEBUG_STATE_T PPC_THREAD_STATE #define R_DEBUG_STATE_T PPC_THREAD_STATE
#define R_DEBUG_STATE_SZ PPC_THREAD_STATE_COUNT
#elif __arm #elif __arm
#include <mach/arm/thread_status.h> #include <mach/arm/thread_status.h>
#define R_DEBUG_REG_T arm_thread_state_t #define R_DEBUG_REG_T arm_thread_state_t
#define R_DEBUG_STATE_T ARM_THREAD_STATE #define R_DEBUG_STATE_T ARM_THREAD_STATE
#define R_DEBUG_STATE_SZ ARM_THREAD_STATE_COUNT
#else #else
#include <mach/i386/thread_status.h> #include <mach/i386/thread_status.h>
#include <sys/ucontext.h> #include <sys/ucontext.h>