Re: [Dwarf-Discuss] DW_AT_decl_file etc understood now. Question answered.

2020-02-17 Thread Philip Craig via Dwarf-Discuss
On Tue, 18 Feb 2020 at 10:40, David Anderson via Dwarf-Discuss wrote: > > A bit of thought, and it becomes clear. Since 0 is a reserved > (and always has been) > value for DW_AT_decl_file the numbers used by the compiler > must start at 1. > > So to index into the array of names from the line tabl

[Dwarf-Discuss] DW_AT_decl_file etc understood now. Question answered.

2020-02-17 Thread David Anderson via Dwarf-Discuss
A bit of thought, and it becomes clear. Since 0 is a reserved (and always has been) value for DW_AT_decl_file the numbers used by the compiler must start at 1. So to index into the array of names from the line table header make sure your value is greater than zero and subtract 1 from the DW_AT_de