[tiger] The states need _t with them.
Now why the heck is glew not cooperating when it did so on min version 10.4?
This commit is contained in:
@@ -28,7 +28,7 @@ bool GetThreadBacktraceContext( uint64_t iID, BacktraceContext *ctx )
|
|||||||
thread_act_t thread = thread_act_t( iID );
|
thread_act_t thread = thread_act_t( iID );
|
||||||
|
|
||||||
#if defined(__ppc__)
|
#if defined(__ppc__)
|
||||||
ppc_thread_state state;
|
ppc_thread_state_t state;
|
||||||
mach_msg_type_number_t count = PPC_THREAD_STATE_COUNT;
|
mach_msg_type_number_t count = PPC_THREAD_STATE_COUNT;
|
||||||
|
|
||||||
if( thread_get_state(thread, PPC_THREAD_STATE, thread_state_t(&state), &count) )
|
if( thread_get_state(thread, PPC_THREAD_STATE, thread_state_t(&state), &count) )
|
||||||
@@ -37,14 +37,14 @@ bool GetThreadBacktraceContext( uint64_t iID, BacktraceContext *ctx )
|
|||||||
ctx->PC = (void *)state.srr0;
|
ctx->PC = (void *)state.srr0;
|
||||||
return true;
|
return true;
|
||||||
#elif defined(__i386__)
|
#elif defined(__i386__)
|
||||||
i386_thread_state state;
|
i386_thread_state_t state;
|
||||||
mach_msg_type_number_t count = i386_THREAD_STATE_COUNT;
|
mach_msg_type_number_t count = i386_THREAD_STATE_COUNT;
|
||||||
|
|
||||||
if( thread_get_state(thread, i386_THREAD_STATE, thread_state_t(&state), &count) )
|
if( thread_get_state(thread, i386_THREAD_STATE, thread_state_t(&state), &count) )
|
||||||
return false;
|
return false;
|
||||||
ctx->ip = (void *)state.eip;
|
ctx->ip = (void *)state.__eip;
|
||||||
ctx->bp = (void *)state.ebp;
|
ctx->bp = (void *)state.__ebp;
|
||||||
ctx->sp = (void *)state.esp;
|
ctx->sp = (void *)state.__esp;
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user