aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-08 07:27:57 -0700
committerTom Tromey <tom@tromey.com>2021-03-08 07:28:44 -0700
commit40d07d07d051308626f6079fa6d1598fafb445c7 (patch)
treea4970d5e8eca6209227d371eabc11e409053b243 /gdb/parse.c
parent0b2b0b8220f4430f83c49ca2da62f27b6b1964d1 (diff)
downloadgdb-40d07d07d051308626f6079fa6d1598fafb445c7.zip
gdb-40d07d07d051308626f6079fa6d1598fafb445c7.tar.gz
gdb-40d07d07d051308626f6079fa6d1598fafb445c7.tar.bz2
Change exp_uses_objfile to return bool
This change exp_uses_objfile to return bool. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * parser-defs.h (exp_uses_objfile): Return bool. * parse.c (exp_uses_objfile): Return bool.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r--gdb/parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/parse.c b/gdb/parse.c
index 056dee1..966b27e 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -641,11 +641,11 @@ parser_fprintf (FILE *x, const char *y, ...)
va_end (args);
}
-/* Return 1 if EXP uses OBJFILE (and will become dangling when OBJFILE
- is unloaded), otherwise return 0. OBJFILE must not be a separate debug info
- file. */
+/* 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. */
-int
+bool
exp_uses_objfile (struct expression *exp, struct objfile *objfile)
{
gdb_assert (objfile->separate_debug_objfile_backlink == NULL);