diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-02-10 18:45:02 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-02-10 18:45:02 +0000 |
commit | c95a567addd264054ce9b32954f891f31af3ee57 (patch) | |
tree | 52c5f2aa9b6ef9b621990ad797ace671a05e963f /gdb/target-descriptions.h | |
parent | 7fb0737847d9e332a397f69b8ab425bf9ef13209 (diff) | |
download | gdb-c95a567addd264054ce9b32954f891f31af3ee57.tar.gz |
Add i387_ext, i386_eflags and i386_mxcsr.
2010-02-10 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.
Diffstat (limited to 'gdb/target-descriptions.h')
-rw-r--r-- | gdb/target-descriptions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/target-descriptions.h b/gdb/target-descriptions.h index 17f52eb1eb8..da0564b556c 100644 --- a/gdb/target-descriptions.h +++ b/gdb/target-descriptions.h @@ -176,6 +176,10 @@ const char *tdesc_register_name (struct gdbarch *gdbarch, int regno); struct type *tdesc_register_type (struct gdbarch *gdbarch, int regno); +/* Return the type associated with ID, from the target description. */ + +struct type *tdesc_find_type (struct gdbarch *gdbarch, const char *id); + /* Check whether REGNUM is a member of REGGROUP using the target description. Return -1 if the target description does not specify a group. */ |