2004-12-05 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / gdb / p-exp.y
index 779424e90d5562f854a526da2f91002ac034c510..a80f8e9275b0263dde58d8c1684414355284db6f 100644 (file)
@@ -1611,8 +1611,11 @@ yylex ()
 #endif /* not 0 */
          return TYPENAME;
         }
-    if ((yylval.tsym.type = lookup_primitive_typename (tmp)) != 0)
-       return TYPENAME;
+    yylval.tsym.type
+      = language_lookup_primitive_type_by_name (current_language,
+                                               current_gdbarch, tmp);
+    if (yylval.tsym.type != NULL)
+      return TYPENAME;
 
     /* Input names that aren't symbols but ARE valid hex numbers,
        when the input radix permits them, can be names or numbers
This page took 0.023218 seconds and 4 git commands to generate.