PATCH: PATCH: Add builtin floating point types

H.J. Lu hjl.tools@gmail.com
Mon Feb 8 02:17:00 GMT 2010


On Sun, Feb 7, 2010 at 3:08 PM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
> On Sun, Feb 07, 2010 at 03:03:09PM -0800, H.J. Lu wrote:
>> How about adding it to common code without initializing it?
>> I will lazy initialize it in target-description.c only when it
>> is used?
>
> It's easy to add per-gdbarch variables using gdbarch_data.
> I was suggesting the cache at the level of arch_floating_type (or
> however it's called).
>


We have builtin_float and other float types in gdbtypes.c,
using gdbarch_data. I will add

/* Return the type table for the specified architecture.  */
extern const struct arch_floating_type *arch_floating_type (struct
gdbarch *gdbarch);

with gdbfloattypes.[ch].

-- 
H.J.



More information about the Gdb-patches mailing list