diff options
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 779424e..a80f8e9 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -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 |