Skip to content

Commit

Permalink
Use CC location for resolving toolchain path in VSCode template
Browse files Browse the repository at this point in the history
VSCode uses the "packagetoolchainBinDir" option to find the objdump
binary and if GDB is shipped separately from the toolchain package then
VSCode will fail to launch a debug session due to missing objdump
  • Loading branch information
valeros committed Aug 14, 2023
1 parent 7e89e55 commit 2ee8214
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ test-driven methodologies, and modern toolchains for unrivaled success.
6.1.11 (2023-??-??)
~~~~~~~~~~~~~~~~~~~

* Resolved a possible issue that may cause generated projects for `PlatformIO IDE for VSCode <https://docs.platformio.org/en/latest/integration/ide/vscode.html>`__ to fail to launch a debug session because of a missing objdump binary when GDB is not part of the toolchain package

6.1.10 (2023-08-11)
~~~~~~~~~~~~~~~~~~~

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
% "name": "PIO Debug (skip Pre-Debug)",
% "executable": _escape_path(prog_path),
% "projectEnvName": env_name if forced_env_name else default_debug_env_name,
% "toolchainBinDir": _escape_path(os.path.dirname(gdb_path)),
% "toolchainBinDir": _escape_path(os.path.dirname(cc_path)),
% "internalConsoleOptions": "openOnSessionStart",
% }
%
Expand Down

0 comments on commit 2ee8214

Please sign in to comment.