在调试程序时,出现以下错误 "Can't find a source file at "/app/Debug/../Core/Src/main.c" " 想用用-fdebug-prefix-map标志如下: -fdebug-prefix-map=$(@D)=.去掉Docker目录前缀,也没有效果。 有没有一种方法可以在主机上使用在Docker容器内的调试镜像编译程序? 如果我使用arm-none-eabi-gcc v9.3.1在docker容器中编译项目,并在Makefile中包含-fdebug-prefix-map标志,可以在主机上使用生成的.elf镜像运行arm-none-eabi-gbd并正常调试,但无法让它适用于STM32 CUBEIde。
|