Community
Participate
Working Groups
Created attachment 247154 [details] cpp_demo.out compiled with -gdwarf-3 flag. Hi, We have switched the VxWorks C++ generation on dwarf-3 and discovered the following issue on the attached cpp_demo.out: <2><1f90>: Abbrev Number: 50 (DW_TAG_lexical_block) <1f91> DW_AT_ranges : 0x60 The TCF debugger was getting 0x0 for the AT_ranges. objdump -r cpp_demo.out: 00001f91 UNKNOWN .debug_ranges+0x00000060 Once I apply the relocation, I can see my C++ variables. I'm a little worried that we would apply relocation when reading FORM_SEC_OFFSET. Would there other places where we should do that in dwarfio.c ? Here is a proposal patch: https://git.eclipse.org/r/#/c/33500/
Yes, DWARF spec allows relocatable FORM_SEC_OFFSET. Looks good, submitted. Thanks!