mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-14 11:25:52 +08:00
* objfiles.h (clear_objfile_data): New prototype.
* objfiles.c (clear_objfile_data): New function. * symfile.c (reread_symbols): Clear per-objfile data.
This commit is contained in:
@ -1165,6 +1165,13 @@ objfile_free_data (struct objfile *objfile)
|
||||
objfile->data = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
clear_objfile_data (struct objfile *objfile)
|
||||
{
|
||||
gdb_assert (objfile->data != NULL);
|
||||
memset (objfile->data, 0, objfile->num_data * sizeof (void *));
|
||||
}
|
||||
|
||||
void
|
||||
set_objfile_data (struct objfile *objfile, const struct objfile_data *data,
|
||||
void *value)
|
||||
|
Reference in New Issue
Block a user