Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc] Add TYPE_FLOATFORMAT() to `struct type'
@ 2001-08-20 20:42 Andrew Cagney
  2001-08-22 17:49 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cagney @ 2001-08-20 20:42 UTC (permalink / raw)
  To: gdb-patches

Hello,

Continuing with this floating-point overhall, the attatched adds 
TYPE_FLOATFORMAT() to the floating-point (TYPE_CODE_FLT) `struct type' 
objects.  All the existing builtin FP types are updated.  I even 
discovered and updated ``(gdb) maint print type double''.

Assuming no one says anything about this, I'll check this patch in in a 
few days.

The next steps are:

	o	add builtin types for all those floatformats

	o	update the store_floating() and extract_floating()
		functions make use of TYPE_FLOATFORMAT().

	Andrew
From ac131313@cygnus.com Mon Aug 20 21:28:00 2001
From: Andrew Cagney <ac131313@cygnus.com>
To: Fernando Nasser <fnasser@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa] Attempt #3: Eliminate HOST_*_FORMAT from arm-*tdep.c
Date: Mon, 20 Aug 2001 21:28:00 -0000
Message-id: <3B81E36D.8090007@cygnus.com>
References: <3B60DF2A.5020902@cygnus.com> <3B7086BC.5020908@cygnus.com> <3B81CA86.FEDFF20D@cygnus.com>
X-SW-Source: 2001-08/msg00232.html
Content-length: 515

> 
> Sorry for the delay Andrew.
> 
> As per our conversation, this seems to be the correct thing to do.
> We haven't heard of any objection, so lets try it.
> 
> Please check it in.
> 
> Regards,
> Fernando


Thanks!  I've taken the liberty of updating it slightly.  Since there is 
now a floatformat_arm_ext_littlebyte_bigword available, I'm able to 
``FIX'' the fixme.  It now uses floatformat_arm_ext_littlebyte_bigword 
when the target is little endian.

I've attached the relevant bit of the patch.

	Andrew


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [rfc] Add TYPE_FLOATFORMAT() to `struct type'
  2001-08-20 20:42 [rfc] Add TYPE_FLOATFORMAT() to `struct type' Andrew Cagney
@ 2001-08-22 17:49 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2001-08-22 17:49 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

I've checked this in.
	Andrew

> Continuing with this floating-point overhall, the attatched adds TYPE_FLOATFORMAT() to the floating-point (TYPE_CODE_FLT) `struct type' objects.  All the existing builtin FP types are updated.  I even discovered and updated ``(gdb) maint print type double''.
> 
> Assuming no one says anything about this, I'll check this patch in in a few days.
> 
> The next steps are:
> 
>     o    add builtin types for all those floatformats
> 
>     o    update the store_floating() and extract_floating()
>         functions make use of TYPE_FLOATFORMAT().
> 
>     Andrew
> 
> 
> 
> 2001-08-20  Andrew Cagney  <ac131313@redhat.com>
> 
> * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
> 	of builtin_type_float, builtin_type_double and
> 	builtin_type_long_double.
> 	(recursive_dump_type): Print the floatformat name.
> 	* gdbtypes.h (struct type): Add type_specific field floatformat.
> 	(TYPE_FLOATFORMAT): Define
> 
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-22 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-20 20:42 [rfc] Add TYPE_FLOATFORMAT() to `struct type' Andrew Cagney
2001-08-22 17:49 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox