public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: miwako.tokugawa@intel.com
To: gcc-gnats@gcc.gnu.org
Subject: debug/8187: gdb (Linux/Itanium) does not handle long double
Date: Thu, 10 Oct 2002 09:06:00 -0000	[thread overview]
Message-ID: <20021010160326.11861.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2002-10-10 16:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10  9:06 miwako.tokugawa [this message]
2002-10-11 16:31 rth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021010160326.11861.qmail@sources.redhat.com \
    --to=miwako.tokugawa@intel.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).