This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: PATCH: Add builtin floating point types
On Sun, Feb 7, 2010 at 2:25 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sun, Feb 7, 2010 at 2:14 PM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
>> On Sun, Feb 07, 2010 at 02:00:36PM -0800, H.J. Lu wrote:
>>> Is there a way to call i387_ext_type from ?target-descriptions.c?
>>> Otherwise, ?XML target description will create multiple i386_ext
>>> types and won't work for x86 since x86 requires single i386_ext
>>> type per arch.
>>
>> Maybe the common code could cache the created types?
>>
>
> I need a place to hold the created type in the common code.
> When do I put it?
>
How about adding it to common code without initializing it?
I will lazy initialize it in target-description.c only when it
is used?
Thanks.
--
H.J.