This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] Add TYPE_FLOATFORMAT() to `struct type'
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [rfc] Add TYPE_FLOATFORMAT() to `struct type'
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 22 Aug 2001 20:48:55 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <3B81D8A8.70603@cygnus.com>
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
>
>