aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-12-19 11:14:02 -0700
committerTom Tromey <tromey@adacore.com>2023-01-04 09:46:58 -0700
commitaa9bd4452873136e7406f68fc51e66ef5951190b (patch)
tree7ed6ccaf4c055065b09463b2c7083d04366d418a /gdb/varobj.c
parent4b9728bec157796478831972fc8d07306dd9dcde (diff)
downloadfsf-binutils-gdb-aa9bd4452873136e7406f68fc51e66ef5951190b.zip
fsf-binutils-gdb-aa9bd4452873136e7406f68fc51e66ef5951190b.tar.gz
fsf-binutils-gdb-aa9bd4452873136e7406f68fc51e66ef5951190b.tar.bz2
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 <lancelot.six@amd.com>
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c3
1 files changed, 1 insertions, 2 deletions
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