language_lookup_primitive_type: Renamed from language_lookup_primitive_type_by_name.
authorDoug Evans <xdje42@gmail.com>
Thu, 18 Dec 2014 09:10:34 +0000 (01:10 -0800)
committerDoug Evans <xdje42@gmail.com>
Thu, 18 Dec 2014 09:10:34 +0000 (01:10 -0800)
gdb/ChangeLog:

* language.c (language_lookup_primitive_type): Renamed from
language_lookup_primitive_type_by_name.  All callers updated.

gdb/ChangeLog
gdb/ada-exp.y
gdb/c-exp.y
gdb/d-exp.y
gdb/f-exp.y
gdb/gdbtypes.c
gdb/go-exp.y
gdb/language.c
gdb/language.h
gdb/p-exp.y

index a9656691eb0ef42fb7d3368a41051099f60ddddb..c7b4b21fc870768010a0e110b399f7ee26a61c76 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-18  Doug Evans  <xdje42@gmail.com>
+
+       * language.c (language_lookup_primitive_type): Renamed from
+       language_lookup_primitive_type_by_name.  All callers updated.
+
 2014-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix MinGW compilation.
index 0a4995202ae326f3d5c1ad5991c2da2799e0ebdb..c02f6a161bbccb7451eeff7f1c5279aebc413bb2 100644 (file)
@@ -1086,9 +1086,9 @@ static struct type*
 find_primitive_type (struct parser_state *par_state, char *name)
 {
   struct type *type;
-  type = language_lookup_primitive_type_by_name (parse_language (par_state),
-                                                parse_gdbarch (par_state),
-                                                name);
+  type = language_lookup_primitive_type (parse_language (par_state),
+                                        parse_gdbarch (par_state),
+                                        name);
   if (type == NULL && strcmp ("system__address", name) == 0)
     type = type_system_address (par_state);
 
@@ -1525,9 +1525,9 @@ static struct type *
 type_system_address (struct parser_state *par_state)
 {
   struct type *type 
-    = language_lookup_primitive_type_by_name (parse_language (par_state),
-                                             parse_gdbarch (par_state),
-                                             "system__address");
+    = language_lookup_primitive_type (parse_language (par_state),
+                                     parse_gdbarch (par_state),
+                                     "system__address");
   return  type != NULL ? type : parse_type (par_state)->builtin_data_ptr;
 }
 
index 9d1c4c7755eecf6d6bb9c190791635f07b7a5467..707e504ebe224d7564d7ecb94cdcd33aed7c5668 100644 (file)
@@ -2942,9 +2942,9 @@ classify_name (struct parser_state *par_state, const struct block *block,
     }
 
   yylval.tsym.type
-    = language_lookup_primitive_type_by_name (parse_language (par_state),
-                                             parse_gdbarch (par_state),
-                                             copy);
+    = language_lookup_primitive_type (parse_language (par_state),
+                                     parse_gdbarch (par_state),
+                                     copy);
   if (yylval.tsym.type != NULL)
     return TYPENAME;
 
index 5e4c10dfe70cf6c4e96d53a1ad78fdcad22a905c..00d3a26ab2bdeff1565f36ee04fe777e9bd89a47 100644 (file)
@@ -1577,8 +1577,8 @@ yylex (void)
     return DOLLAR_VARIABLE;
 
   yylval.tsym.type
-    = language_lookup_primitive_type_by_name (parse_language (pstate),
-                                             parse_gdbarch (pstate), copy);
+    = language_lookup_primitive_type (parse_language (pstate),
+                                     parse_gdbarch (pstate), copy);
   if (yylval.tsym.type != NULL)
     return TYPENAME;
 
index f229afa0f96190e029319b989a1e912efd37fff3..ab3801a36af810f4b41cd2cbe991edad90d1f65a 100644 (file)
@@ -1230,8 +1230,8 @@ yylex (void)
       }
 
     yylval.tsym.type
-      = language_lookup_primitive_type_by_name (parse_language (pstate),
-                                               parse_gdbarch (pstate), tmp);
+      = language_lookup_primitive_type (parse_language (pstate),
+                                       parse_gdbarch (pstate), tmp);
     if (yylval.tsym.type != NULL)
       return TYPENAME;
     
index c5a390a9533260497afb707e6bf719a41086a0b8..0048f6a1a5f91695027d69ba5df5546ffa47ee4e 100644 (file)
@@ -1310,7 +1310,7 @@ lookup_typename (const struct language_defn *language,
   if (sym != NULL && SYMBOL_CLASS (sym) == LOC_TYPEDEF)
     return SYMBOL_TYPE (sym);
 
-  type = language_lookup_primitive_type_by_name (language, gdbarch, name);
+  type = language_lookup_primitive_type (language, gdbarch, name);
   if (type)
     return type;
 
index f9ffbf97dbb960889445845bdbd93a8e0df461ae..51781783c4099f9ba616614e8a45d30683a33a47 100644 (file)
@@ -1455,9 +1455,9 @@ classify_name (struct parser_state *par_state, const struct block *block)
   copy = copy_name (yylval.sval);
 
   /* Try primitive types first so they win over bad/weird debug info.  */
-  type = language_lookup_primitive_type_by_name (parse_language (par_state),
-                                                parse_gdbarch (par_state),
-                                                copy);
+  type = language_lookup_primitive_type (parse_language (par_state),
+                                        parse_gdbarch (par_state),
+                                        copy);
   if (type != NULL)
     {
       /* NOTE: We take advantage of the fact that yylval coming in was a
index 8d476d398c1c5c4647a4fa96e6596270c0c888c5..df45ddd97c06a294e6c164945070fcb9c446faa6 100644 (file)
@@ -988,9 +988,9 @@ language_bool_type (const struct language_defn *la,
 }
 
 struct type *
-language_lookup_primitive_type_by_name (const struct language_defn *la,
-                                       struct gdbarch *gdbarch,
-                                       const char *name)
+language_lookup_primitive_type (const struct language_defn *la,
+                               struct gdbarch *gdbarch,
+                               const char *name)
 {
   struct language_gdbarch *ld = gdbarch_data (gdbarch,
                                              language_gdbarch_data);
@@ -999,8 +999,7 @@ language_lookup_primitive_type_by_name (const struct language_defn *la,
   if (symbol_lookup_debug)
     {
       fprintf_unfiltered (gdb_stdlog,
-                         "language_lookup_primitive_type_by_name"
-                         " (%s, %s, %s)",
+                         "language_lookup_primitive_type (%s, %s, %s)",
                          la->la_name, host_address_to_string (gdbarch), name);
     }
 
index 9ed7e22ac3ead335ebfbe6610992eae029d3e75e..aa07d8dada0f7945cf1fdb509bcf35c8b6d1db86 100644 (file)
@@ -435,9 +435,9 @@ struct type *language_bool_type (const struct language_defn *l,
 struct type *language_string_char_type (const struct language_defn *l,
                                        struct gdbarch *gdbarch);
 
-struct type *language_lookup_primitive_type_by_name (const struct language_defn *l,
-                                                    struct gdbarch *gdbarch,
-                                                    const char *name);
+struct type *language_lookup_primitive_type (const struct language_defn *l,
+                                            struct gdbarch *gdbarch,
+                                            const char *name);
 
 \f
 /* These macros define the behaviour of the expression 
index 1c966ccdaf377e90e76ed78663b60981b4354c25..675514ca8ccb926ea2bc6dbce4bf793c72255f73 100644 (file)
@@ -1710,8 +1710,8 @@ yylex (void)
          return TYPENAME;
         }
     yylval.tsym.type
-      = language_lookup_primitive_type_by_name (parse_language (pstate),
-                                               parse_gdbarch (pstate), tmp);
+      = language_lookup_primitive_type (parse_language (pstate),
+                                       parse_gdbarch (pstate), tmp);
     if (yylval.tsym.type != NULL)
       {
        free (uptokstart);