From: Eli Zaretskii <eliz@gnu.org>
To: Daniel Jacobowitz <drow@false.org>
Cc: 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 22:32:00 -0000 [thread overview]
Message-ID: <u8xevjdzb.fsf@gnu.org> (raw)
In-Reply-To: <20070218203410.GA31724@caradoc.them.org> (message from Daniel Jacobowitz on Sun, 18 Feb 2007 15:34:10 -0500)
> Date: Sun, 18 Feb 2007 15:34:10 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Jan Kratochvil <jan.kratochvil@redhat.com>, gdb-patches@sourceware.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.
That'd be fine with me, but do we really want a deviation from past
behavior? How do we know no one out there depends on it?
> The current behavior is "print/x (long) val", which I consider to be
> silly.
I don't think it's so silly, but I cannot say I care for it too much,
either. My main concern is to avoid gratuitous breakage of someone's
.gdbinit.
> I can't recall ever typing p/x on a float value and expecting
> to get a result rounded to no decimal places.
Me neither.
next prev parent reply other threads:[~2007-02-18 22:32 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
2007-02-18 22:32 ` Eli Zaretskii [this message]
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=u8xevjdzb.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=drow@false.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