#include <kern/misc_protos.h>
#include <kern/debug.h>
+#include <IOKit/IOPlatformExpert.h>
+
boolean_t db_sstep_print;
int db_loop_count;
int db_call_depth;
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(
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;
}
-
boolean_t
db_in_single_step(void)
{
return(db_run_mode != STEP_NONE && db_run_mode != STEP_CONTINUE);
}
+