PATCH: Cache types from target description
Daniel Jacobowitz
dan@codesourcery.com
Wed Feb 10 18:38:00 GMT 2010
On Tue, Feb 09, 2010 at 07:45:13AM -0800, H.J. Lu wrote:
> 2010-02-09 H.J. Lu <hongjiu.lu@intel.com>
>
> * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
> TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
> (tdesc_predefined_types): Add i387_ext, i386_eflags and
> i386_mxcsr.
> (tdesc_find_type): New.
> (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
> TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
>
> * target-descriptions.h (tdesc_find_type): New.
This is OK. I am not happy having the flag types in this file, but
I don't see a better way yet. Really they should be described in the
XML file!
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list