MCPcopy Index your code
hub / github.com/RT-Thread/rt-thread / dbg_thread_in_debug

Function dbg_thread_in_debug

components/lwp/lwp_dbg.c:19–29  ·  view source on GitHub ↗

* @brief Check if the current thread is in debug state. * * @return int Returns 1 if the thread is in debug state, 0 otherwise. */

Source from the content-addressed store, hash-verified

17 * @return int Returns 1 if the thread is in debug state, 0 otherwise.
18 */
19int dbg_thread_in_debug(void)
20{
21 int ret = 0;
22 struct rt_lwp *lwp = lwp_self();
23
24 if (lwp && lwp->debug)
25 {
26 ret = 1;
27 }
28 return ret;
29}
30
31struct dbg_ops_t *rt_dbg_ops = RT_NULL;
32RTM_EXPORT(rt_dbg_ops);

Callers

nothing calls this directly

Calls 1

lwp_selfFunction · 0.85

Tested by

no test coverage detected