From 3db75e76cb94b55c893ae9e1e65b0af13eeea7e7 Mon Sep 17 00:00:00 2001 From: Luca Burelli Date: Mon, 27 Nov 2023 12:20:49 +0100 Subject: [PATCH] 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. --- platform.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/platform.txt b/platform.txt index 78369b70ae8..a6b6d8cbf6d 100644 --- a/platform.txt +++ b/platform.txt @@ -267,6 +267,7 @@ debug.server.openocd.scripts_dir={runtime.platform.path}{pathsep}tools{pathsep}o debug.server.openocd.scripts.0=board{pathsep}{debug_script.{build.mcu}} debug.svd_file={runtime.platform.path}{pathsep}tools{pathsep}ide-debug{pathsep}svd{pathsep}{build.mcu}.svd +debug.cortex-debug.custom.objdumpPath={compiler.path}{compiler.prefix}objdump{binext} debug.cortex-debug.custom.request=attach debug.additional_config=debug_config.{build.mcu}