diff options
author | Tom Tromey <tromey@adacore.com> | 2022-12-19 11:14:02 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-01-04 09:46:58 -0700 |
commit | aa9bd4452873136e7406f68fc51e66ef5951190b (patch) | |
tree | 7ed6ccaf4c055065b09463b2c7083d04366d418a /gdb/varobj.c | |
parent | 4b9728bec157796478831972fc8d07306dd9dcde (diff) | |
download | gdb-aa9bd4452873136e7406f68fc51e66ef5951190b.zip gdb-aa9bd4452873136e7406f68fc51e66ef5951190b.tar.gz 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.c | 3 |
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 |