Skip to content

Commit bca404d

Browse files
committed
feat(debug): pass objdump path to resolve globals
Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. On Arduino-ESP32 core versions 2.x, though, this causes a crash within the Cortex-Debug extension as a result of loading the symbol table. This feature is thus disabled for now.
1 parent 52964ec commit bca404d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: platform.txt

+2
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ debug.server.openocd.scripts_dir.windows={runtime.platform.path}\tools\openocd-e
298298
debug.server.openocd.scripts.0=board/{debug_script.{build.mcu}}
299299
debug.svd_file={runtime.platform.path}/tools/ide-debug/svd/{build.mcu}.svd
300300

301+
# Enabling globals causes a crash within the Cortex-Debug extension with 2.x libraries
302+
# debug.cortex-debug.custom.objdumpPath={compiler.path}{compiler.prefix}objdump
301303
debug.cortex-debug.custom.request=attach
302304
debug.additional_config=debug_config.{build.mcu}
303305

0 commit comments

Comments
 (0)