Skip to content

An xPack with the Debug Run-Time Metadata library

License

Notifications You must be signed in to change notification settings

micro-os-plus/drtm

Repository files navigation

npm (scoped) license

DRTM

An xPack with the Debug Run-Time Metadata library.

This library provies support for parsing the Debug Run-Time Metadata, used by thread-aware GDB servers. The Debug Run-Time Metadata is stored in the application flash space; it includes addresses of various scheduler data and offsets inside TCBs (Thread Control Blocks).

The purpose is to improve portability of debugging tools, by removing hard-coded constants, like offsets into objects, that may vary between builds.

Easy install

npm install @ilg/drtm

-mapcs-frame

For a proper display of the stack trace and navigation amongst stack frames, the -mapcs-frame option must be added to the GCC command line to generate a stack frame that is compliant with the ARM Procedure Call Standard for all functions, even if this is not strictly necessary for correct execution of the code.

License

The original content is released under the MIT License, with all rights reserved to Liviu Ionescu.