* 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:
Mark Kettenis
2003-10-29 18:29:07 +00:00
parent 83aeabb6dd
commit 7b097ae392
4 changed files with 15 additions and 0 deletions

View File

@ -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)