Rev 2924 | Rev 2936 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2924 | Rev 2935 | ||
---|---|---|---|
Line 88... | Line 88... | ||
88 | break; |
88 | break; |
89 | } |
89 | } |
90 | 90 | ||
91 | if (bi < MAX_BRKPTS) { |
91 | if (bi < MAX_BRKPTS) { |
92 | printf("breakpoint %d hit\n", bi); |
92 | printf("breakpoint %d hit\n", bi); |
- | 93 | breakpoint_hit(); |
|
93 | 94 | ||
94 | buffer[ISTATE_OFF_EIP] = brk_addr; |
95 | buffer[ISTATE_OFF_EIP] = brk_addr; |
95 | buffer[ISTATE_OFF_EFLAGS] |= 0x0100; /* trap flag */ |
96 | buffer[ISTATE_OFF_EFLAGS] |= 0x0100; /* trap flag */ |
96 | printf("setting EIP to 0x%08x\n", buffer[ISTATE_OFF_EIP]); |
97 | printf("setting EIP to 0x%08x\n", buffer[ISTATE_OFF_EIP]); |
97 | rc = udebug_regs_write(app_phone, thread_hash, buffer); |
98 | rc = udebug_regs_write(app_phone, thread_hash, buffer); |