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

Function db_hwatchpoint_cmd

freebsd/ddb/db_watch.c:298–310  ·  view source on GitHub ↗

Set hardware watchpoint */ ARGSUSED*/

Source from the content-addressed store, hash-verified

296/* Set hardware watchpoint */
297/*ARGSUSED*/
298void
299db_hwatchpoint_cmd(db_expr_t addr, bool have_addr, db_expr_t count,
300 char *modif)
301{
302 int rc;
303
304 if (count < 0)
305 count = 4;
306
307 rc = db_md_set_watchpoint(addr, count);
308 if (rc < 0)
309 db_printf("hardware watchpoint could not be set\n");
310}

Callers

nothing calls this directly

Calls 2

db_printfFunction · 0.85
db_md_set_watchpointFunction · 0.50

Tested by

no test coverage detected