[英]Change DWARF elf format in IAR ARM V8 compiler
In our development, we switched from IAR ARM V7.40 to IAR ARM V8.40在我们的开发中,我们从 IAR ARM V7.40 切换到 IAR ARM V8.40
We are using the python package pyelftools
for postprocessing of the debug information.我们正在使用 python package
pyelftools
对调试信息进行后处理。 Unfortunately, this seems to be broken now, as the V8-compiler seems to use DWARF4 syntax, which is not fully covered by pyelftools.不幸的是,现在这似乎被打破了,因为 V8 编译器似乎使用 DWARF4 语法,而 pyelftools 并未完全涵盖这一点。 The V7-compiler used DWARF3 which was fine.
V7 编译器使用 DWARF3,这很好。
Is there any compiler option for IAR V8 to change DWARF format? IAR V8 是否有任何编译器选项可以更改 DWARF 格式? In the IAR C/C++ Development Guide , I only find the
--debug, -r
option to enable debug information, but no further fine tunings (eg like -gdwarf-3
option for the arm-clang compiler).在IAR C/C++ Development Guide中,我只找到
--debug, -r
选项来启用调试信息,但没有进一步的微调(例如 arm-clang 编译器的-gdwarf-3
选项)。
There is a hidden compiler option --no_dwarf4
which disables DWARF4.有一个隐藏的编译器选项
--no_dwarf4
可以禁用 DWARF4。 This works fine for our problem.这对我们的问题很有效。
Unfortunately, this compiler option is neither documented in the IAR C/C++ Development Guide nor listed in the command line help ( $ iccarm --help
) for the compiler.不幸的是,这个编译器选项既没有记录在IAR C/C++ 开发指南中,也没有列在编译器的命令行帮助 (
$ iccarm --help
) 中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.