This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
debug/8187: gdb (Linux/Itanium) does not handle long double
- From: miwako dot tokugawa at intel dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 10 Oct 2002 16:03:26 -0000
- Subject: debug/8187: gdb (Linux/Itanium) does not handle long double
- Reply-to: miwako dot tokugawa at intel dot com
>Number: 8187
>Category: debug
>Synopsis: gdb (Linux/Itanium) does not handle long double
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 10 09:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: miwako.tokugawa@intel.com
>Release: unknown-1.0
>Organization:
>Environment:
linux & Itanium
>Description:
GDB is not able to show long double data on IA64 at all (problem is absent on IA32):
(gdb) b 41
Breakpoint 1 at 0x40000000000027c1: file all_types.c, line 41.
(gdb) r
Starting program: /home/sana/test/gdbC/opt_none_debug_64/all_types.exe
Breakpoint 1, fp_params (fp1=47.9700012, dbl1=123456789.98765433, ldbl1=Can't deal with a floating point number of 16 bytes.
)
at all_types.c:41
41 fresult = fp1 + dbl1 + ldbl1 + lfp1;
(gdb) whatis ldbl1
type = long double
(gdb) p ldbl1
$1 = Can't deal with a floating point number of 16 bytes.
(gdb)
Debug information for ldbl1 is:
s
<1><16d7>: Abbrev Number: 6 (DW_TAG_base_type)
DW_AT_byte_size : 16
DW_AT_bit_size : 80
DW_AT_bit_offset : 0
DW_AT_encoding : 4 (float)
DW_AT_name : long double
<2><18f8>: Abbrev Number: 5 (DW_TAG_variable)
DW_AT_decl_line : 70
DW_AT_decl_column : 16
DW_AT_decl_file : 1
DW_AT_accessibility: 1 (public)
DW_AT_name : ldbl1
DW_AT_type : <16d7>
DW_AT_location : 3 byte block: 92 c 10 (DW_OP_bregx: 12 16)
DW_AT_external : 0
One thing is that gcc can't compile this test.. still I think this needs to be supported in gdb.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: