diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-07-28 15:49:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-07-28 15:49:04 +0000 |
commit | 97a93b166530bb65352fcd748d2e6cba613bbd79 (patch) | |
tree | 9eaab83e00f9bf04dd5ddafc67d3e3e294f9e76b /gdb/ada-lex.l | |
parent | f2af537447c471d28471f6726c51b51384069065 (diff) | |
download | gdb-97a93b166530bb65352fcd748d2e6cba613bbd79.tar.gz |
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/ada-lex.l')
-rw-r--r-- | gdb/ada-lex.l | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l index a7ce81639aa..21dba2c021b 100644 --- a/gdb/ada-lex.l +++ b/gdb/ada-lex.l @@ -741,7 +741,9 @@ name_lookup (char *name0, char *err_name, int *token_type, int depth) if (segments == 0) { - type = lookup_primitive_typename (name); + type = language_lookup_primitive_type_by_name (current_language, + current_gdbarch, + name); if (type == NULL && strcmp ("system__address", name) == 0) type = builtin_type_ada_system_address; if (type != NULL) |