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.
精彩评论