Skip to content

Commit

Permalink
Merge pull request #4 from raspberrypi/macos-toolchain-gdb
Browse files Browse the repository at this point in the history
Use toolchain GDB on MacOS
  • Loading branch information
will-v-pi authored Apr 3, 2024
2 parents fd476eb + 932ebb7 commit 119759d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pico_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('\\', '\\\\' ))
Expand Down

0 comments on commit 119759d

Please sign in to comment.