Rev 2918 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2918 | Rev 3424 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #include <arch/breakpoint.h> |
35 | #include <arch/breakpoint.h> |
36 | #include <panic.h> |
36 | #include <panic.h> |
37 | #include <console/klog.h> |
37 | #include <print.h> |
38 | #include <interrupt.h> |
38 | #include <interrupt.h> |
39 | #include <func.h> |
39 | #include <func.h> |
40 | 40 | ||
41 | static void breakpoint_exception(int n __attribute__((unused)), istate_t *istate) |
41 | static void breakpoint_exception(int n __attribute__((unused)), istate_t *istate) |
42 | { |
42 | { |
43 | ASSERT(THREAD); |
43 | ASSERT(THREAD); |
44 | ASSERT(istate_from_uspace(istate)); |
44 | ASSERT(istate_from_uspace(istate)); |
45 | 45 | ||
46 | (void)istate; |
46 | (void)istate; |
47 | klog_printf("breakpoint exception\n"); |
47 | printf("breakpoint exception\n"); |
48 | interrupts_enable(); |
48 | interrupts_enable(); |
49 | udebug_breakpoint_event(istate->eip); |
49 | udebug_breakpoint_event(istate->eip); |
50 | } |
50 | } |
51 | 51 | ||
52 | /** Initialize breakpoint handling */ |
52 | /** Initialize breakpoint handling */ |