diff options
author | Kévin Le Gouguec <legouguec@adacore.com> | 2022-04-07 10:51:51 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-18 08:41:07 +0000 |
commit | 91b46ee298bf76401006f7699544ac9c107d92f9 (patch) | |
tree | 05ad0652aea527788d391b3ecbb72eba117bebc8 /gcc/fortran/openmp.cc | |
parent | 72de114c23027f1d1f0df4c78e69c4302e39e058 (diff) | |
download | gcc-91b46ee298bf76401006f7699544ac9c107d92f9.zip gcc-91b46ee298bf76401006f7699544ac9c107d92f9.tar.gz gcc-91b46ee298bf76401006f7699544ac9c107d92f9.tar.bz2 |
[Ada] Fix DWARF parsing for 32-bit targets on 64-bit hosts
Currently, a 64-bit gnatsymbolize fails to output line numbers and
accurate symbol names when run on 32-bit executables (and vice-versa).
This is because a couple of spots in System.Dwarf_Lines expect the
Address_Size found in the DWARF data to match the host Address'Size.
This patch corrects that assumption.
gcc/ada/
* libgnat/s-dwalin.adb (Aranges_Lookup, Enable_Cache): Adapt to
changes in the signature of Read_Aranges_*.
(Debug_Info_Lookup): Do not control address size read from
DWARF.
(Read_Aranges_Header): Do not control address size read from
DWARF; return this size.
(Read_Aranges_Entry): Use the size returned by
Read_Aranges_Header.
Diffstat (limited to 'gcc/fortran/openmp.cc')
0 files changed, 0 insertions, 0 deletions