There are now two different callbacks for break- and watchpoints.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11715 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
823f4c5bf4
commit
b24684af25
@ -421,7 +421,10 @@ i386_handle_debug_exception(struct iframe *frame)
|
||||
// enable interrupts and notify the debugger
|
||||
enable_interrupts();
|
||||
|
||||
user_debug_break_or_watchpoint_hit(watchpoint);
|
||||
if (watchpoint)
|
||||
user_debug_watchpoint_hit();
|
||||
else
|
||||
user_debug_breakpoint_hit(false);
|
||||
|
||||
} else if (dr6 & X86_DR6_BD) {
|
||||
// general detect exception
|
||||
@ -467,7 +470,7 @@ i386_handle_breakpoint_exception(struct iframe *frame)
|
||||
{
|
||||
enable_interrupts();
|
||||
|
||||
user_debug_break_or_watchpoint_hit(false);
|
||||
user_debug_breakpoint_hit(true);
|
||||
|
||||
return B_HANDLED_INTERRUPT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user