summaryrefslogtreecommitdiff
path: root/gdb/objc-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/objc-exp.y')
-rw-r--r--gdb/objc-exp.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y
index 1a31f5edc82..8103de6e073 100644
--- a/gdb/objc-exp.y
+++ b/gdb/objc-exp.y
@@ -333,7 +333,8 @@ exp : '[' TYPENAME
{
CORE_ADDR class;
- class = lookup_objc_class (copy_name ($2.stoken));
+ class = lookup_objc_class (parse_gdbarch,
+ copy_name ($2.stoken));
if (class == 0)
error ("%s is not an ObjC Class",
copy_name ($2.stoken));
@@ -1748,7 +1749,7 @@ yylex ()
/* See if it's an ObjC classname. */
if (!sym)
{
- CORE_ADDR Class = lookup_objc_class(tmp);
+ CORE_ADDR Class = lookup_objc_class (parse_gdbarch, tmp);
if (Class)
{
yylval.class.class = Class;