mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
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>
This commit is contained in:
12
gdb/parse.c
12
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 ()
|
||||
|
Reference in New Issue
Block a user