From 40d07d07d051308626f6079fa6d1598fafb445c7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Mar 2021 07:27:57 -0700 Subject: [PATCH] Change exp_uses_objfile to return bool This change exp_uses_objfile to return bool. gdb/ChangeLog 2021-03-08 Tom Tromey * parser-defs.h (exp_uses_objfile): Return bool. * parse.c (exp_uses_objfile): Return bool. --- gdb/ChangeLog | 5 +++++ gdb/parse.c | 8 ++++---- gdb/parser-defs.h | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7e7a2c0d1a3..edbba7fd8bf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-03-08 Tom Tromey + + * parser-defs.h (exp_uses_objfile): Return bool. + * parse.c (exp_uses_objfile): Return bool. + 2021-03-08 Tom Tromey * value.h (eval_skip_value): Don't declare. diff --git a/gdb/parse.c b/gdb/parse.c index 056dee18d07..966b27e5643 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); diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index 22768215a24..8ff9da63d41 100644 --- a/gdb/parser-defs.h +++ b/gdb/parser-defs.h @@ -376,7 +376,7 @@ extern bool parse_float (const char *p, int len, extern void parser_fprintf (FILE *, const char *, ...) ATTRIBUTE_PRINTF (2, 3); -extern int exp_uses_objfile (struct expression *exp, struct objfile *objfile); +extern bool exp_uses_objfile (struct expression *exp, struct objfile *objfile); #endif /* PARSER_DEFS_H */ -- 2.30.2