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/eval.c | |
parent | 4b9728bec157796478831972fc8d07306dd9dcde (diff) | |
download | binutils-aa9bd4452873136e7406f68fc51e66ef5951190b.zip binutils-aa9bd4452873136e7406f68fc51e66ef5951190b.tar.gz binutils-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/eval.c')
-rw-r--r-- | gdb/eval.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -89,6 +89,15 @@ parse_to_comma_and_eval (const char **expp) /* See expression.h. */ +bool +expression::uses_objfile (struct objfile *objfile) const +{ + gdb_assert (objfile->separate_debug_objfile_backlink == nullptr); + return op->uses_objfile (objfile); +} + +/* See expression.h. */ + struct value * expression::evaluate (struct type *expect_type, enum noside noside) { |