static void dbg_hard_stp_protect() { if(!dbg_hard_stp_enabled()) return; debug(DBG_HARD_STP, "hard stp protect\n"); dbg_hard_stp_save_context(); dbg_hard_stp_save_tf(__rflags.tf); __rflags.tf = 1; __post_access(__rflags); /* XXX */ /* __protect_rflags(); */ info->vmm.ctrl.dbg.excp |= 1<<GP_EXCP; dbg_hard_protect(); }
void dbg_hard_brk_enable() { debug(DBG_HARD_BRK, "hard brk enabled\n"); dbg_hard_brk_set_enable(1); dbg_hard_protect(); }