I use ARMCC to generate AXF and it seems that the value of "DW_CFA_def_cfa_offset " in the AXF file is not as expected. It seems to be multiplied with "data_alignment_factor". Meanwhile in DWARF standard, it should not. Is it a known issue and any working solution for this issue? Thanks in adavnce!
Below is the detailed information of the ARMCC's version and options I used.
[ARMCC version]
5.03 [Build 102] DS-5 Ultimate Edition
[Options]
armcc --thumb --cpu Cortex-R5 --dwarf2 -g -O2 --split_sections --diag_suppress 1295,1296 --diag_suppress 66,230,1,550,186,111,514,9931
Hi qiujianle,
I looked at the list of bugs fixed in later versions of ARM Compiler and I found a couple of issues related to DWARF information which may be related to the problem you're seeing.
For example, on 5.03u1 (http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.arn0005k/index.html) you can find:
- The compiler could sometimes generate incorrect .debug_loc and .debug_frame information resulting in debuggers being unable to show local variables and call stacks correctly. This has been fixed. [SDCOMP-20191]
I would suggest to try with a newer version of ARM Compiler 5. You can download the latest version ARM Compiler 5.06u1 here http://ds.arm.com/downloads/compilers/.
If later versions of ARM Compiler 5 don't fix the issue, could you please attach an example code? This would help our engineers to look at the problem more in depth.
Best Regards,
Stefano