GDB does not load .gdbinit (Windows)
Posted: Tue Dec 29, 2020 2:39 pm
I am trying the most basic GDB / OpenOCD functionality because I am unable to get the debugger working in VS Code.
Follow instructions at:
https://docs.espressif.com/projects/esp ... mand-line
Hoever due to a security feature GDB does not load gdbinit file:
.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\share\gdb\gdbinit
But adding "add-auto-load-safe-path H:\projects\esp\temp\get-started\blink\.gdbinit" to this file did not solve the issue.
Any suggestion ?
Follow instructions at:
https://docs.espressif.com/projects/esp ... mand-line
Hoever due to a security feature GDB does not load gdbinit file:
This applies to Linux, so I searched for a gdbinit and found one:To enable execution of this file add
add-auto-load-safe-path H:\projects\esp\temp\get-started\blink\.gdbinit
line to your configuration file "$HOME/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "$HOME/.gdbinit".
.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\share\gdb\gdbinit
But adding "add-auto-load-safe-path H:\projects\esp\temp\get-started\blink\.gdbinit" to this file did not solve the issue.
Any suggestion ?