diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-07-28 04:33:49 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-07-28 04:33:49 +0000 |
commit | 5a44ea29aea73cce2be45f6c16163053e2e2e55b (patch) | |
tree | 02944d878adc29800fffdf616bc7d378f9ba3cd5 /gdb | |
parent | f290d38e06f4f311d4fe339e50afa3fd57fc1b4b (diff) | |
download | gdb-5a44ea29aea73cce2be45f6c16163053e2e2e55b.zip gdb-5a44ea29aea73cce2be45f6c16163053e2e2e55b.tar.gz gdb-5a44ea29aea73cce2be45f6c16163053e2e2e55b.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 2 | ||||
-rw-r--r-- | gdb/language.c | 8 | ||||
-rw-r--r-- | gdb/language.h | 6 |
4 files changed, 16 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4e81d90..0247736ac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +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. diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index c626e9b..c6d4812 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1036,7 +1036,7 @@ type_name_no_tag (const struct type *type) 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); } diff --git a/gdb/language.c b/gdb/language.c index b8ef8c9..d1a1fb9 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -1283,7 +1283,7 @@ unknown_language_arch_info (struct gdbarch *gdbarch, 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 *); } @@ -1443,16 +1443,16 @@ language_string_char_type (const struct language_defn *la, } 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++) { diff --git a/gdb/language.h b/gdb/language.h index 511c1cb..489ca23 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -141,11 +141,11 @@ struct language_format_info 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; }; @@ -153,7 +153,7 @@ struct language_arch_info 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); |