| 327 | } |
| 328 | |
| 329 | int |
| 330 | dbg_setup_watchpoint(db_expr_t addr, db_expr_t size, enum dbg_access_t access) |
| 331 | { |
| 332 | struct dbg_wb_conf conf; |
| 333 | |
| 334 | if (access == HW_BREAKPOINT_X) { |
| 335 | db_printf("Invalid access type for watchpoint: %d\n", access); |
| 336 | return (EINVAL); |
| 337 | } |
| 338 | |
| 339 | conf.address = addr; |
| 340 | conf.size = size; |
| 341 | conf.access = access; |
| 342 | conf.type = DBG_TYPE_WATCHPOINT; |
| 343 | |
| 344 | return (dbg_setup_xpoint(&conf)); |
| 345 | } |
| 346 | |
| 347 | int |
| 348 | dbg_remove_watchpoint(db_expr_t addr, db_expr_t size __unused) |
no test coverage detected