Skip to content

Commit 932ebb7

Browse files
authored
Use toolchain GDB on MacOS
1 parent 2b78202 commit 932ebb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pico_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ def generateProjectFiles(projectPath, projectName, sdkPath, projects, debugger,
735735
if debugger == "raspberrypi-swd.cfg":
736736
shutil.copyfile(sourcefolder + "/" + "raspberrypi-swd.cfg", projectPath / "raspberrypi-swd.cfg")
737737

738-
gdbPath = Path(codeToolchainPath(toolchainVersion)+"/bin/arm-none-eabi-gdb").as_posix() if isWindows else "gdb-multiarch" if isMac else "gdb"
738+
gdbPath = Path(codeToolchainPath(toolchainVersion)+"/bin/arm-none-eabi-gdb").as_posix() if isWindows or isMac else "gdb"
739739
# Need to escape windows files paths backslashes
740740
# TODO: env in currently not supported in compilerPath var
741741
#cPath = f"${{env:PICO_TOOLCHAIN_PATH_{envSuffix}}}" + os.path.sep + os.path.basename(str(compilerPath).replace('\\', '\\\\' ))

0 commit comments

Comments
 (0)