我使用Vscode + CMake + arm-none-eabi + openocd在Linux上开发。我在将此设置迁移到windows时遇到了麻烦。这是相关的片段:
{
"version": "0.2.0",
"configurations": [
{
...
"setupCommands": [
...
{ "text": "-file-exec-and-symbols ${command:cmake.launchTargetPath}", "description": "load file", "ignoreFailures": false},
...
],
...
}
...
]
}
字符串${command:cmake.launchTargetPath}
返回一个带有'\'
的windows路径,当作为gdb参数传递时,该路径被解释为转义字符。"C:\\some\path\output.elf"
作为"C:\somepathoutput.elf"
传递
1条答案
按热度按时间smdnsysy1#
字符串