X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/378393581903b274cb7a4d18e0d978071a6b592d..0c530ab8987f0ae6a1a3d9284f40182b88852816:/osfmk/ddb/db_run.c diff --git a/osfmk/ddb/db_run.c b/osfmk/ddb/db_run.c index d0898f80c..4a00102db 100644 --- a/osfmk/ddb/db_run.c +++ b/osfmk/ddb/db_run.c @@ -71,6 +71,8 @@ #include #include +#include + boolean_t db_sstep_print; int db_loop_count; int db_call_depth; @@ -504,6 +506,19 @@ db_continue_cmd( db_cmd_loop_done = 1; } + +/* + * Switch to gdb + */ +void +db_to_gdb( + void) +{ + extern unsigned int switch_debugger; + + switch_debugger=1; +} + /* gdb */ void db_continue_gdb( @@ -512,9 +527,7 @@ db_continue_gdb( db_expr_t count, char * modif) { -#if defined(__ppc__) db_to_gdb(); -#endif db_run_mode = STEP_CONTINUE; db_inst_count = 0; db_last_inst_count = 0; @@ -525,9 +538,9 @@ db_continue_gdb( } - boolean_t db_in_single_step(void) { return(db_run_mode != STEP_NONE && db_run_mode != STEP_CONTINUE); } +