* @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
| 153 | * If no debug operations are registered, it returns RT_NULL. |
| 154 | */ |
| 155 | rt_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 |