* @brief Check if the current thread is in debug state. * * @return int Returns 1 if the thread is in debug state, 0 otherwise. */
| 17 | * @return int Returns 1 if the thread is in debug state, 0 otherwise. |
| 18 | */ |
| 19 | int 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 | |
| 31 | struct dbg_ops_t *rt_dbg_ops = RT_NULL; |
| 32 | RTM_EXPORT(rt_dbg_ops); |
nothing calls this directly
no test coverage detected