Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: luisgpm@linux.vnet.ibm.com
Cc: drow@false.org (Daniel Jacobowitz),
	        gdb-patches@sourceware.org (gdb-patches ml)
Subject: Re: [RFC] Detecting and printing 128-bit long double values for PPC
Date: Mon, 30 Apr 2007 12:28:00 -0000	[thread overview]
Message-ID: <200704301227.l3UCRhMP024148@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <1177803916.6280.64.camel@localhost> from "Luis Machado" at Apr 28, 2007 08:45:16 PM

Luis Machado wrote:

> Isn't GDB currently able to detect the type length in runtime in order
> to correctly print those values?

No, it isn't.  How should GDB recognize the difference?

> With this modification i've noticed that GDB cuts the extra precision
> bytes for a binary built with -mlong-double-64, while printing the value
> with the total avaiable precision when it's built with
> -mlong-double-128.

That's interesting.  GDB will always read in 16 bytes after your
modification -- maybe the binary you're building with -mlong-double-64
happens to have zeros after the "long double" variable your're reading?

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2007-04-30 12:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-28 14:08 Luis Machado
2007-04-28 16:19 ` Daniel Jacobowitz
2007-04-28 16:27   ` Ulrich Weigand
2007-04-28 16:49     ` Daniel Jacobowitz
2007-04-28 23:47       ` Luis Machado
2007-04-30 12:28         ` Ulrich Weigand [this message]
2007-04-30 12:41           ` Daniel Jacobowitz
2007-04-30 13:15             ` Luis Machado
2007-04-30 13:19               ` Daniel Jacobowitz
2007-04-30 13:51                 ` Luis Machado
2007-04-30 13:53                   ` Luis Machado
2007-04-30 14:12                   ` Daniel Jacobowitz
2007-05-06 21:36                     ` Ulrich Weigand
2007-05-06 22:17                       ` Daniel Jacobowitz
2007-08-31 18:15                         ` Luis Machado
2007-08-31 18:27                           ` Joseph S. Myers
2007-04-30 18:03                 ` Luis Machado
2007-04-30 13:08           ` Luis Machado

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=200704301227.l3UCRhMP024148@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=luisgpm@linux.vnet.ibm.com \
    /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