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

Function kdb_cpu_pc_is_singlestep

freebsd/arm/arm/debug_monitor.c:254–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254boolean_t
255kdb_cpu_pc_is_singlestep(db_addr_t pc)
256{
257 /*
258 * XXX: If the platform fails to enable its debug arch.
259 * there will be no stepping capabilities
260 */
261 if (!dbg_capable())
262 return (FALSE);
263
264 if (dbg_find_slot(DBG_TYPE_BREAKPOINT, pc) != ~0U)
265 return (TRUE);
266
267 return (FALSE);
268}
269
270void
271kdb_cpu_set_singlestep(void)

Callers

nothing calls this directly

Calls 2

dbg_capableFunction · 0.85
dbg_find_slotFunction · 0.70

Tested by

no test coverage detected