summaryrefslogtreecommitdiff
path: root/gdb/expression.h
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/expression.h
parent4b9728bec157796478831972fc8d07306dd9dcde (diff)
downloadbinutils-gdb-aa9bd4452873136e7406f68fc51e66ef5951190b.tar.gz
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/expression.h')
-rw-r--r--gdb/expression.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/expression.h b/gdb/expression.h
index 2e00da90509..c314fc24e1b 100644
--- a/gdb/expression.h
+++ b/gdb/expression.h
@@ -214,6 +214,11 @@ struct expression
op->dump (stream, 0);
}
+ /* Return true if this expression uses OBJFILE (and will become
+ dangling when OBJFILE is unloaded), otherwise return false.
+ OBJFILE must not be a separate debug info file. */
+ bool uses_objfile (struct objfile *objfile) const;
+
/* Evaluate the expression. EXPECT_TYPE is the context type of the
expression; normally this should be nullptr. NOSIDE controls how
evaluation is performed. */