aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-exp.y
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-07-28 15:49:04 +0000
committerAndrew Cagney <cagney@redhat.com>2004-07-28 15:49:04 +0000
commit54a5b07d668e9320efb1ada27582f859ccfaaaf3 (patch)
treebb8806432915e2a3c51e5fce41748971395d232f /gdb/p-exp.y
parente9667a656bea31ff7d801cf8a7699f0f006319a1 (diff)
downloadgdb-54a5b07d668e9320efb1ada27582f859ccfaaaf3.zip
gdb-54a5b07d668e9320efb1ada27582f859ccfaaaf3.tar.gz
gdb-54a5b07d668e9320efb1ada27582f859ccfaaaf3.tar.bz2
2004-07-28 Andrew Cagney <cagney@gnu.org>
* gdbtypes.c (lookup_primitive_typename): Delete function. * gdbtypes.h (lookup_primitive_typename): Delete declaration. * ada-lex.l: Use language_lookup_primitive_type_by_name. * gdbtypes.c (lookup_typename): Ditto. * f-exp.y (yylex): Ditto. * c-exp.y (yylex): Ditto, eliminate assignment in "if".
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r--gdb/p-exp.y7
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