From: Michael Snyder <msnyder@cygnus.com>
To: Jim Blandy <jimb@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: float host/target confusion in `f' format
Date: Wed, 12 Sep 2001 11:09:00 -0000 [thread overview]
Message-ID: <3B9FA4C9.A4FF3E98@cygnus.com> (raw)
In-Reply-To: <20010912044554.C94035E9D8@zwingli.cygnus.com>
Jim Blandy wrote:
>
> Does this look like the right thing to do? (I hate floating point types.)
Looks right to me...
>
> 2001-09-11 Jim Blandy <jimb@redhat.com>
>
> * printcmd.c (print_scalar_formatted): Compare the length of the
> value against the lengths of the target's floating-point types,
> not the host's.
>
> Index: gdb/printcmd.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/printcmd.c,v
> retrieving revision 1.27
> diff -c -r1.27 printcmd.c
> *** gdb/printcmd.c 2001/09/12 04:18:08 1.27
> --- gdb/printcmd.c 2001/09/12 04:22:02
> ***************
> *** 455,463 ****
> break;
>
> case 'f':
> ! if (len == sizeof (float))
> type = builtin_type_float;
> ! else if (len == sizeof (double))
> type = builtin_type_double;
> print_floating (valaddr, type, stream);
> break;
> --- 455,463 ----
> break;
>
> case 'f':
> ! if (len == TYPE_LENGTH (builtin_type_float))
> type = builtin_type_float;
> ! else if (len == TYPE_LENGTH (builtin_type_double))
> type = builtin_type_double;
> print_floating (valaddr, type, stream);
> break;
next prev parent reply other threads:[~2001-09-12 11:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-11 21:44 Jim Blandy
2001-09-12 11:09 ` Michael Snyder [this message]
2001-09-12 11:51 ` Andrew Cagney
2001-09-12 12:28 ` Jim Blandy
2001-12-07 13:09 ` Jim Blandy
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=3B9FA4C9.A4FF3E98@cygnus.com \
--to=msnyder@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@cygnus.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