Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [RFC] print/x of a float/double should printf ("%a")
Date: Sun, 18 Feb 2007 20:34:00 -0000	[thread overview]
Message-ID: <20070218203410.GA31724@caradoc.them.org> (raw)
In-Reply-To: <uirdzjjql.fsf@gnu.org>

On Sun, Feb 18, 2007 at 10:25:54PM +0200, Eli Zaretskii wrote:
>   . I don't like this bit:
> 
> > Systems not supporting "%a" will print the value as
> > 	print (float) a
> > which differs from the current way there:
> > 	print/x (long) a
> 
> This makes this an incompatible change.  For this reason, I'd prefer a
> new format letter, like Andreas suggested.

Is that the only reason you prefer a new format letter, rather than
changing 'x'?  We could make it work everywhere - it would just be a
bit of work, probably by adding appropriate bits to gnulib.  I'll
even volunteer to do it.

The current behavior is "print/x (long) val", which I consider to be
silly.  I can't recall ever typing p/x on a float value and expecting
to get a result rounded to no decimal places.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-02-18 20:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-18 15:37 Jan Kratochvil
2007-02-18 15:46 ` Andreas Schwab
2007-02-18 16:09   ` Daniel Jacobowitz
2007-02-18 16:34     ` Andreas Schwab
2007-02-18 20:26 ` Eli Zaretskii
2007-02-18 20:34   ` Daniel Jacobowitz [this message]
2007-02-18 22:32     ` Eli Zaretskii
2007-02-23 16:15   ` Jan Kratochvil
2007-02-23 18:18     ` Eli Zaretskii

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=20070218203410.GA31724@caradoc.them.org \
    --to=drow@false.org \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.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