aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python-type.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/python/python-type.c b/gdb/python/python-type.c
index 577ebd2..0874a99 100644
--- a/gdb/python/python-type.c
+++ b/gdb/python/python-type.c
@@ -26,6 +26,7 @@
#include "cp-support.h"
#include "demangle.h"
#include "objfiles.h"
+#include "language.h"
typedef struct pyty_type_object
{
@@ -373,7 +374,8 @@ typy_lookup_typename (char *type_name)
else if (!strncmp (type_name, "enum ", 5))
type = lookup_enum (type_name + 5, NULL);
else
- type = lookup_typename (type_name, NULL, 0);
+ type = lookup_typename (current_language, current_gdbarch,
+ type_name, NULL, 0);
}
if (except.reason < 0)
{