Debug:support python script auto debug nuttx kernel

This patch add an example and pyhton base modules:
1.add memdump.py is an example to analyze memory
usage by python script.
2.add The most basic data structure analysis, like list, etc.

future ideas:
Maybe we can add modules related to "sched, drivers, arch, fs.." to
automatically analyze scripts to debug some problems

References:
linux kernel (https://github.com/torvalds/linux/tree/master/scripts/gdb)
The official manual of gdb (https://sourceware.org/gdb/onlinedocs/gdb/Python-API.html)

Change-Id: Ib9025a0a141cb89f3813526f7c55dcb28de31ed9
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2023-06-13 11:59:52 +08:00
committed by Xiang Xiao
parent 79c0fafc06
commit adc5c8b5ac
5 changed files with 676 additions and 0 deletions
+1
View File
@@ -59,3 +59,4 @@ uImage
.dirlinks
.vscode
.DS_Store
tools/gdb/__pycache__