MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / gdb_server_channel

Function gdb_server_channel

components/lwp/lwp_dbg.c:155–164  ·  view source on GitHub ↗

* @brief Gets the GDB server communication channel if debug operations are registered * * @return rt_channel_t Returns the GDB server channel (RT_NULL if no debug operations registered) * * @note This function checks if debug operations are registered (rt_dbg_ops) and if so, * retrieves the GDB server communication channel from the registered operations. * If no debug operations

Source from the content-addressed store, hash-verified

153 * If no debug operations are registered, it returns RT_NULL.
154 */
155rt_channel_t gdb_server_channel(void)
156{
157 rt_channel_t ret = RT_NULL;
158
159 if (rt_dbg_ops)
160 {
161 ret = rt_dbg_ops->gdb_get_server_channel();
162 }
163 return ret;
164}
165
166/**
167 * @brief Gets the current step type from debug operations

Callers 1

lwp_ref_decFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected