how to use the debug subsys and what it is used for?


曹子龙
 

HI all:

    in the directory zephyr/subsys/debug/, gdb_server.c used for what and what scenario can we use this function?  

can this be used on arm ?  what the difference between it  and the bare-metal debug environment based on jlink or DS-5 ? 

thanks for your kindly reply.



 


Benjamin Walsh <benjamin.walsh@...>
 

in the directory zephyr/subsys/debug/, gdb_server.c used for what and
what scenario can we use this function?

can this be used on arm ? what the difference between it and the
bare-metal debug environment based on jlink or DS-5 ?
The GDB server was used in WR Rocket, a product based on an early zephyr
codebase. It was used for both loading images and debugging when a
hardware solution was not available, such as on the Intel Galileo
platform. In fact, that is the only platform it has been used seriously
(I think it worked with QEMU as well).

It has never been used on ARM in production (there was an internal
prototype at some point), and the ARM zephyr kernel lacks the support to
work with it.

I don't know the status of it anymore, since it has not been used with
the recent code base (that I know of), even for galileo.

--
Benjamin Walsh, SMTS
WR VxWorks Virtualization Profile
www.windriver.com
Zephyr kernel maintainer
www.zephyrproject.org