+2004-07-28 Andrew Cagney <cagney@gnu.org>
+
+ * language.h (struct language_arch_info): Fix typo
+ s/primative/primitive/.
+ * gdbtypes.c (lookup_primitive_typename): Ditto.
+ * language.c (language_lookup_primitive_type_by_name)
+ (unknown_language_arch_info): Ditto.
+
2004-07-27 Andrew Cagney <cagney@gnu.org>
* defs.h (enum language): Add nr_languages.
struct type *
lookup_primitive_typename (char *name)
{
- return language_lookup_primative_type_by_name (current_language,
+ return language_lookup_primitive_type_by_name (current_language,
current_gdbarch,
name);
}
struct language_arch_info *lai)
{
lai->string_char_type = builtin_type (gdbarch)->builtin_char;
- lai->primative_type_vector = GDBARCH_OBSTACK_CALLOC (gdbarch, 1,
+ lai->primitive_type_vector = GDBARCH_OBSTACK_CALLOC (gdbarch, 1,
struct type *);
}
}
struct type *
-language_lookup_primative_type_by_name (const struct language_defn *la,
+language_lookup_primitive_type_by_name (const struct language_defn *la,
struct gdbarch *gdbarch,
const char *name)
{
struct language_gdbarch *ld = gdbarch_data (gdbarch,
language_gdbarch_data);
- if (ld->arch_info[la->la_language].primative_type_vector != NULL)
+ if (ld->arch_info[la->la_language].primitive_type_vector != NULL)
{
struct type *const *p;
- for (p = ld->arch_info[la->la_language].primative_type_vector;
+ for (p = ld->arch_info[la->la_language].primitive_type_vector;
(*p) != NULL;
p++)
{
struct language_arch_info
{
- /* Its primative types. This is a vector ended by a NULL pointer.
+ /* Its primitive 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;
+ struct type **primitive_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 type *language_lookup_primitive_type_by_name (const struct language_defn *l,
struct gdbarch *gdbarch,
const char *name);