From aa9bd4452873136e7406f68fc51e66ef5951190b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 19 Dec 2022 11:14:02 -0700 Subject: Convert exp_uses_objfile to a method of expression This changes the exp_uses_objfile function to be a method of 'expression'. Reviewed-By: Lancelot Six --- gdb/varobj.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/varobj.c') diff --git a/gdb/varobj.c b/gdb/varobj.c index 8470600..eb47eca 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2412,8 +2412,7 @@ varobj_invalidate_if_uses_objfile (struct objfile *objfile) } } - if (var->root->exp != nullptr - && exp_uses_objfile (var->root->exp.get (), objfile)) + if (var->root->exp != nullptr && var->root->exp->uses_objfile (objfile)) { /* The varobj's current expression references the objfile. For globals and floating, it is possible that when we try to -- cgit v1.1