This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PATCH: Add builtin floating point types


On Sun, Feb 7, 2010 at 8:17 PM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
> On Sun, Feb 07, 2010 at 06:16:55PM -0800, H.J. Lu wrote:
>> 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].
>
> I can't figure out what you mean by this at all.
>

I will add a new file, archtypes.c, which provides

extern const struct arch_type *arch_type (struct gdbarch *gdbarch);

which is similar to

extern const struct builtin_type *builtin_type (struct gdbarch *gdbarch);

in gdbtypes.c. struct arch_type will have

struct type *arch_ieee_single;
struct type *arch_ieee_double;
struct type *arch_i387_ext;

They will be lazy initialized. I thought that was what you suggested.


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]