Rev 2943 | Rev 3005 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2943 | Rev 2947 | ||
|---|---|---|---|
| Line 96... | Line 96... | ||
| 96 | cons_printf("Breakpoint removed\n"); |
96 | cons_printf("Breakpoint removed\n"); |
| 97 | } |
97 | } |
| 98 | 98 | ||
| 99 | void arch_breakpoint_list(void) |
99 | void arch_breakpoint_list(void) |
| 100 | { |
100 | { |
| 101 | int i; |
101 | int i, cnt; |
| 102 | 102 | ||
| - | 103 | cnt = 0; |
|
| 103 | for (i = 0; i < MAX_BRKPTS; ++i) { |
104 | for (i = 0; i < MAX_BRKPTS; ++i) { |
| 104 | if (brk_list[i].set != 0) { |
105 | if (brk_list[i].set != 0) { |
| 105 | printf("Breakpoint %d at 0x%lx\n", i, brk_list[i].addr); |
106 | cons_printf("Breakpoint %d at 0x%lx\n", i, |
| - | 107 | brk_list[i].addr); |
|
| - | 108 | ++cnt; |
|
| 106 | } |
109 | } |
| 107 | } |
110 | } |
| - | 111 | if (cnt == 0) cons_printf("No breakpoints set\n"); |
|
| 108 | } |
112 | } |
| 109 | 113 | ||
| 110 | void arch_event_breakpoint(thash_t thread_hash) |
114 | void arch_event_breakpoint(thash_t thread_hash) |
| 111 | { |
115 | { |
| 112 | static istate_t istate; |
116 | static istate_t istate; |
| Line 171... | Line 175... | ||
| 171 | void arch_dump_regs(thash_t thash) |
175 | void arch_dump_regs(thash_t thash) |
| 172 | { |
176 | { |
| 173 | static istate_t istate; |
177 | static istate_t istate; |
| 174 | int rc; |
178 | int rc; |
| 175 | 179 | ||
| 176 | printf("arch_dump_regs...\n"); |
- | |
| 177 | - | ||
| 178 | rc = udebug_regs_read(app_phone, thash, &istate); |
180 | rc = udebug_regs_read(app_phone, thash, &istate); |
| 179 | if (rc < 0) { cons_printf("Error reading regs\n"); return; } |
181 | if (rc < 0) { cons_printf("Error reading regs\n"); return; } |
| 180 | 182 | ||
| 181 | cons_printf( |
183 | cons_printf( |
| 182 | "eip:%08x eflags:%08x eax:%08x ebx:%08x ecx:%08x edx:%08x\n" |
184 | "eip:%08x eflags:%08x eax:%08x ebx:%08x ecx:%08x edx:%08x\n" |