We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 450ff20 commit a4a2cebCopy full SHA for a4a2ceb
1 file changed
src/DebugConfigGenerator.ts
@@ -165,6 +165,13 @@ class CortexDebugConfigProvider extends IDebugConfigProvider {
165
// must use elf to debug
166
debugConfig.executable = outDir + File.sep + prjConfig.name + '.elf';
167
168
+ const toolchain = prj.getToolchain();
169
+ if (toolchain.getToolchainPrefix) {
170
+ debugConfig.toolchainPrefix = toolchain.getToolchainPrefix().trim().replace(/-$/, '');
171
+ } else if (debugConfig.toolchainPrefix) {
172
+ debugConfig.toolchainPrefix = undefined;
173
+ }
174
+
175
// setup svd file, if existed
176
const device = prj.GetPackManager().getCurrentDevInfo();
177
if (device && device.svdPath && debugConfig.svdFile == undefined) {
0 commit comments