From aa9bd4452873136e7406f68fc51e66ef5951190b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 19 Dec 2022 11:14:02 -0700 Subject: 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 --- gdb/expression.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/expression.h') diff --git a/gdb/expression.h b/gdb/expression.h index 2e00da9..c314fc2 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. */ -- cgit v1.1