mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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.
This commit is contained in:
parent
0b2b0b8220
commit
40d07d07d0
@ -1,3 +1,8 @@
|
||||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* parser-defs.h (exp_uses_objfile): Return bool.
|
||||
* parse.c (exp_uses_objfile): Return bool.
|
||||
|
||||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* value.h (eval_skip_value): Don't declare.
|
||||
|
@ -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);
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user