From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [rfc] Add TYPE_FLOATFORMAT() to `struct type' Date: Wed, 22 Aug 2001 17:49:00 -0000 Message-id: <3B8452F7.70601@cygnus.com> References: <3B81D8A8.70603@cygnus.com> X-SW-Source: 2001-08/msg00261.html 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 > > * 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 > >