| 220 | } |
| 221 | |
| 222 | void |
| 223 | db_set_watchpoints(void) |
| 224 | { |
| 225 | db_watchpoint_t watch; |
| 226 | |
| 227 | if (!db_watchpoints_inserted) { |
| 228 | for (watch = db_watchpoint_list; |
| 229 | watch != 0; |
| 230 | watch = watch->link) |
| 231 | pmap_protect(watch->map->pmap, |
| 232 | trunc_page(watch->loaddr), |
| 233 | round_page(watch->hiaddr), |
| 234 | VM_PROT_READ); |
| 235 | |
| 236 | db_watchpoints_inserted = true; |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | void |
| 241 | db_clear_watchpoints(void) |
no test coverage detected