From: Luis Machado <luisgpm@linux.vnet.ibm.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Ulrich Weigand <uweigand@de.ibm.com>,
gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [RFC] Detecting and printing 128-bit long double values for PPC
Date: Sat, 28 Apr 2007 23:47:00 -0000 [thread overview]
Message-ID: <1177803916.6280.64.camel@localhost> (raw)
In-Reply-To: <20070428162752.GA13329@caradoc.them.org>
Isn't GDB currently able to detect the type length in runtime in order
to correctly print those values?
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.
Regards,
Luis
On Sat, 2007-04-28 at 12:27 -0400, Daniel Jacobowitz wrote:
> On Sat, Apr 28, 2007 at 06:24:14PM +0200, Ulrich Weigand wrote:
> > We have the same situation on s390, where we switched from 64-bit to
> > 128-bit long double a while ago. Like PowerPC, there is currently no
> > way to recognize how a binary was built ...
> >
> > While an ABI marker might be a good idea in the future, we're stuck
> > with the situation right now that many unmarked 128-bit long double
> > binaries are already out there (e.g. all of SLES 10 and RHEL 5),
> > and we really should be able to debug those properly.
> >
> > Thus I'm wondering whether we shouldn't have a reasonable default
> > for unmarked binaries, presumably based on the system compiler
> > defaults detected at configure time for native builds, and then
> > provide a command allowing the user to override that default?
>
> Well, that's pretty much what I did for our customer who reported the
> equivalent problem with PowerPC -msoft-float; except instead of
> detecting it at configure time I added a manual configure option
> (since this was for a cross-debugger).
>
> But it doesn't really scale... I'm open to better ideas...
>
next prev parent reply other threads:[~2007-04-28 23:45 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 [this message]
2007-04-30 12:28 ` Ulrich Weigand
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=1177803916.6280.64.camel@localhost \
--to=luisgpm@linux.vnet.ibm.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=uweigand@de.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