aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.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/parse.c
parent4b9728bec157796478831972fc8d07306dd9dcde (diff)
downloadbinutils-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/parse.c')
-rw-r--r--gdb/parse.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/parse.c b/gdb/parse.c
index 29d7bf1..2f7d580 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -667,18 +667,6 @@ parser_fprintf (FILE *x, const char *y, ...)
va_end (args);
}
-/* Return rue if EXP uses OBJFILE (and will become dangling when
- OBJFILE is unloaded), otherwise return false. OBJFILE must not be
- a separate debug info file. */
-
-bool
-exp_uses_objfile (struct expression *exp, struct objfile *objfile)
-{
- gdb_assert (objfile->separate_debug_objfile_backlink == NULL);
-
- return exp->op->uses_objfile (objfile);
-}
-
void _initialize_parse ();
void
_initialize_parse ()