gdb/fortran: Fix quad floating-point type for Intel compilers.
authorFelix Willgerodt <felix.willgerodt@intel.com>
Mon, 15 Mar 2021 10:00:28 +0000 (11:00 +0100)
committerFelix Willgerodt <felix.willgerodt@intel.com>
Mon, 15 Mar 2021 10:02:31 +0000 (11:02 +0100)
commit8d624a9d8050ca96e154215c7858ac5c2d8b0b19
tree81c914f814e862b799c32c2acb89a138bff51fc5
parentc68b1842bdb3cedce0cac7da43045c3788085a91
gdb/fortran: Fix quad floating-point type for Intel compilers.

Intel Fortran compilers emit the following DWARF for gdb.fortran/complex.f90:

0x00000071:   DW_TAG_base_type
                DW_AT_name ("COMPLEX*32")
                DW_AT_encoding (DW_ATE_complex_float)
                DW_AT_byte_size (0x20)

0x00000078:   DW_TAG_base_type
                DW_AT_name ("REAL*16")
                DW_AT_encoding (DW_ATE_float)
                DW_AT_byte_size (0x10)

This results in GDB not reading the right values, as it wrongly assumes the
default floatformat "floatformat_i387_ext" instead of
"floatformat_ia64_quad_little".

gdb/ChangeLog:
2021-03-15  Felix Willgerodt  <felix.willgerodt@intel.com>

* i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
gdb/ChangeLog
gdb/i386-tdep.c
This page took 0.025044 seconds and 4 git commands to generate.