debug/coredump: add a primitive coredump mechanism
This adds a very primitive coredump mechanism under subsys/debug where during fatal error, register and memory content can be dumped to coredump backend. One such backend utilizing log module for output is included. Once the coredump log is converted to a binary file, it can be used with the ELF output file as inputs to an overly simplified implementation of a GDB server. This GDB server can be attached via the target remote command of GDB and will be serving register and memory content. This allows using GDB to examine stack and memory where the fatal error occurred. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
054a9aeec9
commit
49206a86ff
23 changed files with 1692 additions and 0 deletions
|
@ -14,3 +14,8 @@ zephyr_sources_ifdef(
|
|||
CONFIG_THREAD_ANALYZER
|
||||
thread_analyzer.c
|
||||
)
|
||||
|
||||
add_subdirectory_ifdef(
|
||||
CONFIG_DEBUG_COREDUMP
|
||||
coredump
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue