> On 3 Mar 2017, at 00:21, Freddie Chopin <[email protected]> wrote:
> 
> ... add support for a
> new RTOS to OpenOCD? I'm asking because I'm planning to add similar
> support for my project - http://distortos.org/ (similar in some aspects
> to what Liviu is doing) 

Freddie, 

FYI, Armin's request for thread-aware debugging support in OpenOCD triggered a 
small sub-project that I planned for some time, now called DRTM - Debug 
Run-Time Metadata, that aims to help debugging tools by adding run-time 
introspection.

the idea is to add some metadata to the application flash, in order to make the 
debugging tools independent from RTOS internals, (like TCB offsets and variable 
names), which might change from one version to another.


right now I am implementing a small library to handle these details, that I 
plan to use to enable thread-aware debugging for µOS++ IIIe in OpenOCD, SEGGER 
J-Link and QEMU.

the first version (0.1.x) of the metadata will be a simple structure with 
various members, so the library will still need to use hard-coded offsets in 
this structure to access the data.

for version 1.x I plan to improve the structure of the metadata, by using 
id:value pairs, in a sort of compile-time binary JSON, so the fixed point will 
be a list of numeric IDs, not offsets in a structure.

with such a generic metadata, I hope it'll be easier to define the specifics of 
any RTOS, since the mid-term goal is to extend the DRTM library to support 
other RTOSes too.

in other words, with a reasonably elaborated version of DRTM, already included 
in OpenOCD, J-Link, QEMU, adding support for a new RTOS would ideally require 
only to add the DRTM metadata to the debugged application, and the rest of the 
magic should be covered by the DRTM library.


if this solution seems practical, it'll probably be part of the CMSIS++ 
specification, as CMSIS++ DRTM.


the current implementation and hopefully some documentation will be available 
soon on GitHub.


please let me know if you are interested in this approach for distortos.


regards,

Liviu

 
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to