OSX Problem to get debug from cache. Error: Unable to find GDB in default search path
See original GitHub issueBrief Issue Summary
On OSX with a cross compiler in $ARMGCC_DIR attempting to debug via jtag with cortex-debug yields the error:
“Problem to get debug from cache. Error: Unable to find GDB in default search path and /usr/local/opt/toolchain/lldb-arm-none-eabi/bin/arm-none-eabi-lldb.”
from CMake Tools
this is with gdb installed in /usr/local/bin, the same place cmake is installed and cmake.cmakePath=“/usr/local/bin/cmake”
I don’t expect that an arm-none-eabi-lldb is required if my jtag is acting as a gdb server, so what do I do to get rid of this error so that CMake can see gdb?
Expected:
- configure CMake tools to create a CMakeCache that stores the location of gdb
- click the “Debug” button
- gdb launches and attaches
Apparent Behavior:
CMake configure seems to not be aware of my PATH? or perhaps only the path to the debugger . I can compile fine, which requires access to environment variables and an updated PATH (to point to my cross-compiler) . what I am not getting is why “Unable to find GDB in default search path” is occuring
- Push button
- CMake tools reports Unable to find GDB
CMake Tools Log
[build] [29/30 96% :: 0.520] Building C object CMakeFiles/<output_thing>.obj
[build] [30/30 100% :: 0.550] Linking C executable Debug/<arm_executable>.elf
[driver] Run _refreshExpansions
[cms-driver] Run doRefreshExpansions
[driver] Run _refreshExpansions cb
[build] Build finished with exit code 0
[cache] Reading CMake cache file /<project_root>/build/CMakeCache.txt
[cache] Parsing CMake cache string
[proc] Executing command: /usr/local/opt/toolchain/lldb-arm-none-eabi/bin/arm-none-eabi-lldb --version
[cache] Reading CMake cache file /<project_root>/build/CMakeCache.txt
[main] Problem to get debug from cache. Error: Unable to find GDB in default search path and /usr/local/opt/toolchain/lldb-arm-none-eabi/bin/arm-none-eabi-lldb.
[extension] [3824] cmake.debugTarget finished (returned null)
[cache] Parsing CMake cache string
Platform and Versions
- Operating System: macOS
- CMake Version: 3.12.0
- VSCode Version: 1.26.0
- CMake Tools Extension Version: 1.1.0
- Compiler/Toolchain: arm-none-eabi-gcc
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
In your project .vscode/settings.json you can write this:
@andreeis How does one “Set
cmake.debugConfig - miDebuggerPath
”?