@@ -489,9 +489,11 @@ static int r_debug_native_continue(RDebug *dbg, int pid, int tid, int sig) {
489
489
return tid ;
490
490
#elif __APPLE__
491
491
#if __arm__
492
- int i , ret , status ;
493
- thread_array_t inferior_threads = NULL ;
494
- unsigned int inferior_thread_count = 0 ;
492
+ return 1 ;
493
+ #if 0
494
+ //int i, ret, status;
495
+ //thread_array_t inferior_threads = NULL;
496
+ //unsigned int inferior_thread_count = 0;
495
497
496
498
// XXX: detach is noncontrollable continue
497
499
ptrace (PT_DETACH , pid , 0 , 0 );
@@ -513,7 +515,7 @@ static int r_debug_native_continue(RDebug *dbg, int pid, int tid, int sig) {
513
515
for (i = 0; i < inferior_thread_count; i++)
514
516
thread_resume (inferior_threads[i]);
515
517
*/
516
- return 1 ;
518
+ #endif
517
519
#else
518
520
//ut64 rip = r_debug_reg_get (dbg, "pc");
519
521
void * data = (void * )(size_t )((sig != -1 )?sig : dbg -> signum );
@@ -1472,7 +1474,7 @@ static int r_debug_native_reg_write(RDebug *dbg, int type, const ut8* buf, int s
1472
1474
thread_array_t inferior_threads = NULL ;
1473
1475
unsigned int inferior_thread_count = 0 ;
1474
1476
R_DEBUG_REG_T * regs = (R_DEBUG_REG_T * )buf ;
1475
- unsigned int gp_count = R_DEBUG_STATE_SZ ;
1477
+ mach_msg_type_number_t gp_count = R_DEBUG_STATE_SZ ;
1476
1478
1477
1479
ret = task_threads (pid_to_task (pid ),
1478
1480
& inferior_threads , & inferior_thread_count );
@@ -1510,7 +1512,8 @@ static int r_debug_native_reg_write(RDebug *dbg, int type, const ut8* buf, int s
1510
1512
}
1511
1513
#else
1512
1514
ret = thread_set_state (inferior_threads [tid ],
1513
- R_DEBUG_STATE_T , (thread_state_t ) regs , & gp_count );
1515
+ R_DEBUG_STATE_T , (thread_state_t ) regs ,
1516
+ gp_count );
1514
1517
#endif
1515
1518
//if (thread_set_state (inferior_threads[0], R_DEBUG_STATE_T, (thread_state_t) regs, gp_count) != KERN_SUCCESS)
1516
1519
if (ret != KERN_SUCCESS ) {
0 commit comments