diff options
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gdb/language.h b/gdb/language.h index bbb45f6..511c1cb 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -137,6 +137,26 @@ struct language_format_info char *la_format_suffix; /* Suffix for custom format string */ }; +/* Per architecture (OS/ABI) language information. */ + +struct language_arch_info +{ + /* Its primative types. This is a vector ended by a NULL pointer. + These types can be specified by name in parsing types in + expressions, regardless of whether the program being debugged + actually defines such a type. */ + struct type **primative_type_vector; + /* Type of elements of strings. */ + struct type *string_char_type; +}; + +struct type *language_string_char_type (const struct language_defn *l, + struct gdbarch *gdbarch); + +struct type *language_lookup_primative_type_by_name (const struct language_defn *l, + struct gdbarch *gdbarch, + const char *name); + /* Structure tying together assorted information about a language. */ struct language_defn @@ -284,6 +304,10 @@ struct language_defn /* The list of characters forming word boundaries. */ char *(*la_word_break_characters) (void); + /* The per-architecture (OS/ABI) language information. */ + void (*la_language_arch_info) (struct gdbarch *, + struct language_arch_info *); + /* Add fields above this point, so the magic number is always last. */ /* Magic number for compat checking */ |