From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9200 invoked by alias); 28 Jul 2004 04:34:31 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9186 invoked from network); 28 Jul 2004 04:34:30 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 28 Jul 2004 04:34:30 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6S4YUe3010072 for ; Wed, 28 Jul 2004 00:34:30 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6S4YSa07276; Wed, 28 Jul 2004 00:34:29 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 134A12B9D; Wed, 28 Jul 2004 00:34:25 -0400 (EDT) Message-ID: <41072CD0.8070603@gnu.org> Date: Wed, 28 Jul 2004 04:34:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [commit] multi-arch builtin-types #2 of N, language.h References: <41071596.90605@gnu.org> <20040728040045.GA12728@nevyn.them.org> In-Reply-To: <20040728040045.GA12728@nevyn.them.org> Content-Type: multipart/mixed; boundary="------------080902030207060706010607" X-SW-Source: 2004-07/txt/msg00415.txt.bz2 This is a multi-part message in MIME format. --------------080902030207060706010607 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 110 > One correction: primative_type_vector: It's spelled "primitive". Fixed with the attached, thanks. Andrew --------------080902030207060706010607 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 3385 2004-07-28 Andrew Cagney * 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. Index: gdbtypes.c =================================================================== RCS file: /cvs/src/src/gdb/gdbtypes.c,v retrieving revision 1.85 diff -p -u -r1.85 gdbtypes.c --- gdbtypes.c 28 Jul 2004 02:46:22 -0000 1.85 +++ gdbtypes.c 28 Jul 2004 04:32:45 -0000 @@ -1036,7 +1036,7 @@ type_name_no_tag (const struct type *typ 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); } Index: language.c =================================================================== RCS file: /cvs/src/src/gdb/language.c,v retrieving revision 1.47 diff -p -u -r1.47 language.c --- language.c 28 Jul 2004 02:46:23 -0000 1.47 +++ language.c 28 Jul 2004 04:32:46 -0000 @@ -1283,7 +1283,7 @@ unknown_language_arch_info (struct gdbar 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 } 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++) { Index: language.h =================================================================== RCS file: /cvs/src/src/gdb/language.h,v retrieving revision 1.28 diff -p -u -r1.28 language.h --- language.h 28 Jul 2004 02:46:23 -0000 1.28 +++ language.h 28 Jul 2004 04:32:46 -0000 @@ -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); --------------080902030207060706010607--