feat(debugging): move gdbinit generation to CMake

This feature is useful for 3rd-party software to run GDB with predefined
options that described in project_description.json file

allow to pass custom options to "idf.py gdb":

  --gdb-commands: command line arguments for gdb. (without changes)
  -ex: pass command to gdb.
  -x: pass gdbinit file to gdb. Alias for old --gdbinit command
This commit is contained in:
Alexey Lapshin
2024-12-06 19:36:41 +07:00
parent daf465c038
commit 0e57dc044e
19 changed files with 401 additions and 320 deletions
+9 -2
View File
@@ -1,5 +1,5 @@
{
"version": "1.1",
"version": "1.2",
"project_name": "${PROJECT_NAME}",
"project_version": "${PROJECT_VER}",
"project_path": "${PROJECT_PATH}",
@@ -29,5 +29,12 @@
"build_component_paths" : ${build_component_paths_json},
"build_component_info" : ${build_component_info_json},
"all_component_info" : ${all_component_info_json},
"debug_prefix_map_gdbinit": "${debug_prefix_map_gdbinit}"
"debug_prefix_map_gdbinit": "${debug_prefix_map_gdbinit}",
"gdbinit_files": {
"01_symbols": "${gdbinit_files_symbols}",
"02_prefix_map": "${gdbinit_files_prefix_map}",
"03_py_extensions": "${gdbinit_files_py_extensions}",
"04_connect": "${gdbinit_files_connect}"
},
"debug_arguments_openocd": "${debug_arguments_openocd}"
}