aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r--gdb/ada-lex.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index a7ce816..21dba2c 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)