MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dbg_setup_watchpoint

Function dbg_setup_watchpoint

freebsd/arm/arm/debug_monitor.c:329–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329int
330dbg_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
347int
348dbg_remove_watchpoint(db_expr_t addr, db_expr_t size __unused)

Callers 1

db_md_set_watchpointFunction · 0.70

Calls 2

db_printfFunction · 0.85
dbg_setup_xpointFunction · 0.85

Tested by

no test coverage detected