[FL-3299] furi_crash: added C2 status; added fw-version gdb command (#2638)

* furi_crash: added C2 status
* debug: Added "fw-version" gdb command; vscode: updated configuration to use new command
* debug: added fw-info command to debug_other session
* Toolbox: versioned structure for Version
* debug: fw-version: no longer needs an ELF file loaded
* debug: flipperversion: removed unused variable
* debug_other: print running fw version

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
hedger
2023-05-09 01:31:39 +03:00
committed by GitHub
parent 268b88be0d
commit 241b4ef6e4
12 changed files with 205 additions and 22 deletions

View File

@@ -36,6 +36,8 @@
"./debug/stm32wbx.cfg",
],
"postAttachCommands": [
"source debug/flipperversion.py",
"fw-version",
// "compare-sections",
"source debug/flipperapps.py",
"fap-set-debug-elf-root build/latest/.extapps",
@@ -59,6 +61,8 @@
"attach 1",
"set confirm off",
"set mem inaccessible-by-default off",
"source debug/flipperversion.py",
"fw-version",
"source debug/flipperapps.py",
"fap-set-debug-elf-root build/latest/.extapps",
// "compare-sections",
@@ -77,6 +81,8 @@
"svdFile": "./debug/STM32WB55_CM4.svd",
"rtos": "FreeRTOS",
"postAttachCommands": [
"source debug/flipperversion.py",
"fw-version",
"source debug/flipperapps.py",
"fap-set-debug-elf-root build/latest/.extapps",
]
@@ -97,20 +103,13 @@
"./debug/stm32wbx.cfg",
],
"postAttachCommands": [
"source debug/flipperversion.py",
"fw-version",
"source debug/flipperapps.py",
"fap-set-debug-elf-root build/latest/.extapps",
],
// "showDevDebugOutput": "raw",
},
{
"name": "fbt debug",
"type": "python",
"request": "launch",
"program": "./lib/scons/scripts/scons.py",
"args": [
"plugin_dist"
]
},
{
"name": "python debug",
"type": "python",