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

Function db_deletehwatch_cmd

freebsd/ddb/db_watch.c:282–294  ·  view source on GitHub ↗

Delete hardware watchpoint */ ARGSUSED*/

Source from the content-addressed store, hash-verified

280/* Delete hardware watchpoint */
281/*ARGSUSED*/
282void
283db_deletehwatch_cmd(db_expr_t addr, bool have_addr, db_expr_t count,
284 char *modif)
285{
286 int rc;
287
288 if (count < 0)
289 count = 4;
290
291 rc = db_md_clr_watchpoint(addr, count);
292 if (rc < 0)
293 db_printf("hardware watchpoint could not be deleted\n");
294}
295
296/* Set hardware watchpoint */
297/*ARGSUSED*/

Callers

nothing calls this directly

Calls 2

db_printfFunction · 0.85
db_md_clr_watchpointFunction · 0.50

Tested by

no test coverage detected