* Set a temporary breakpoint. * The instruction is changed immediately, * so the breakpoint does not have to be on the breakpoint list. */
| 211 | * so the breakpoint does not have to be on the breakpoint list. |
| 212 | */ |
| 213 | db_breakpoint_t |
| 214 | db_set_temp_breakpoint(db_addr_t addr) |
| 215 | { |
| 216 | register db_breakpoint_t bkpt; |
| 217 | |
| 218 | bkpt = db_breakpoint_alloc(); |
| 219 | if (bkpt == 0) { |
| 220 | db_printf("Too many breakpoints.\n"); |
| 221 | return 0; |
| 222 | } |
| 223 | |
| 224 | bkpt->map = NULL; |
| 225 | bkpt->address = addr; |
| 226 | bkpt->flags = BKPT_TEMP; |
| 227 | bkpt->init_count = 1; |
| 228 | bkpt->count = 1; |
| 229 | |
| 230 | BKPT_WRITE(bkpt->address, &bkpt->bkpt_inst); |
| 231 | return bkpt; |
| 232 | } |
| 233 | |
| 234 | void |
| 235 | db_delete_temp_breakpoint(db_breakpoint_t bkpt) |
no test coverage detected