From: Dwayne Grant McConnell <dgm69@us.ibm.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Have gdb display float infinity.
Date: Mon, 22 Aug 2005 21:42:00 -0000 [thread overview]
Message-ID: <Pine.WNT.4.63.0508221525200.2128@dwayne> (raw)
In-Reply-To: <200508221955.j7MJtcP0019867@elgar.sibelius.xs4all.nl>
On Mon, 22 Aug 2005, Mark Kettenis wrote:
> > Date: Mon, 22 Aug 2005 14:00:11 -0500 (Central Daylight Time)
> > From: Dwayne Grant McConnell <dgm69@us.ibm.com>
> >
> > I noticed that gdb does display NaNs in a special way but not infinity.
> > This patch changes that. I'm a bit new here so I have a few questions.
>
> Thanks! Since you're new, I'll have to ask whether you have a
> copyright assignment for gdb?
Yes. I have one for all the toolchain. I have contributed only to glibc up
to this point. Remind me, do I need to give you a reference number or
somesuch?
> > 1. Should I submit a testcase to go along with the patch? as a separate
> > patch? (I have no idea were to put it yet but I figured I would ask.)
>
> Yes please! A seperate patch is fine, but make sure it gets in
> shortly before or after the fix gets in.
Will do.
> > 2. I simply duplicated floatformat_is_nan() with one minor change to
> > produce floatformat_is_inf(). I could have done this differently. Should I
> > have changed float_format_is_nan() to float_format_is_nan_or_inf() and
> > given the function a parameter for NaN v Inf? Something else?
>
> Hmm, this indeeds seems to duplicate a fair amount of code. Having
> seperate functions for nan and inf is good I think, but do you see a
> way to avoid code duplication?
Let me think about it and I'll submit an alternate patch.
> > I have tested this with both ppc and ppc64 but nothing else.
>
> It'd be great if you also could test this on another platform,
> preferably amd64, i386 or m68k since those have extended double
> formats.
I'll see what I can do.
--
Dwayne Grant McConnell <dgm69@us.ibm.com>
Lotus Notes: Dwayne McConnell/Austin/IBM@IBMUS
prev parent reply other threads:[~2005-08-22 20:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-22 19:38 Dwayne Grant McConnell
2005-08-22 20:28 ` Mark Kettenis
2005-08-22 21:42 ` Dwayne Grant McConnell [this message]
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=Pine.WNT.4.63.0508221525200.2128@dwayne \
--to=dgm69@us.ibm.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mark.kettenis@xs4all.nl \
/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