开发者

Is it possible to add support of a custom RTOS's threads to GDB?

开发者 https://www.devze.com 2023-04-06 12:30 出处:网络
In the scenario of debugging a remote target running a custom RTOS, what would be necessary to add thread support to GDB?

In the scenario of debugging a remote target running a custom RTOS, what would be necessary to add thread support to GDB?

In my case I have access to the RTOS sources and debug info for all its scheduler's symbols, so theoretically the information is accessible.

Would this imply recompiling GDB? Adding hooks to thread-rel开发者_开发问答ated commands?

Any commentary will be greatly appreciated!


You need to add thread support (and in particular, support for H and qXfer:threads:read packets) for your gdb RTOS stub. Documentation here and here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号