Re: [rfc][21/37] Eliminate builtin_type_ macros: Platform-neutral builtin_type_void

Joel Brobecker
2008-09-13T17:23:01Z

> 2.) lookup_pointer_type gets an gdbarch argument (or maybe just a
> "size" argument, as that is what we really need)
>
> In this case, we'd probably have to extend the caching mechanims
> to cache pointers of multiple different sizes (note that to some
> extent that exists today via TYPE_CHAIN, see make_qualified_type).
>
> Then, there wouldn't really be any strict reason any more why
> we couldn't allow making pointer types to platform-neutral types ...

I like this approach as well - I think that passing the gdbarch is fine.
The lookup_pointer_type could iterate over the TYPE_CHAIN list until
it finds a pointer of the right size (or create a new one if not).

--
Joel