From 932ebb772ab6e36cff7e7479e47af64f628e748d Mon Sep 17 00:00:00 2001 From: will-v-pi <108662275+will-v-pi@users.noreply.github.com> Date: Thu, 28 Mar 2024 14:31:38 +0000 Subject: [PATCH] Use toolchain GDB on MacOS --- scripts/pico_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pico_project.py b/scripts/pico_project.py index 2ffcc084..2d488a7a 100644 --- a/scripts/pico_project.py +++ b/scripts/pico_project.py @@ -735,7 +735,7 @@ def generateProjectFiles(projectPath, projectName, sdkPath, projects, debugger, if debugger == "raspberrypi-swd.cfg": shutil.copyfile(sourcefolder + "/" + "raspberrypi-swd.cfg", projectPath / "raspberrypi-swd.cfg") - gdbPath = Path(codeToolchainPath(toolchainVersion)+"/bin/arm-none-eabi-gdb").as_posix() if isWindows else "gdb-multiarch" if isMac else "gdb" + gdbPath = Path(codeToolchainPath(toolchainVersion)+"/bin/arm-none-eabi-gdb").as_posix() if isWindows or isMac else "gdb" # Need to escape windows files paths backslashes # TODO: env in currently not supported in compilerPath var #cPath = f"${{env:PICO_TOOLCHAIN_PATH_{envSuffix}}}" + os.path.sep + os.path.basename(str(compilerPath).replace('\\', '\\\\' ))