diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-10-29 18:29:07 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-10-29 18:29:07 +0000 |
commit | 7b097ae3929cc0a113d185397fff442217b2365b (patch) | |
tree | 48652e518cb65f2f22e748b85766af31ea541a98 /gdb/objfiles.c | |
parent | 83aeabb6ddcb906b8eb17b4aadbb9a89882bcef0 (diff) | |
download | binutils-7b097ae3929cc0a113d185397fff442217b2365b.zip binutils-7b097ae3929cc0a113d185397fff442217b2365b.tar.gz binutils-7b097ae3929cc0a113d185397fff442217b2365b.tar.bz2 |
* objfiles.h (clear_objfile_data): New prototype.
* objfiles.c (clear_objfile_data): New function.
* symfile.c (reread_symbols): Clear per-objfile data.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 1321b82..9a181f4 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -1166,6 +1166,13 @@ objfile_free_data (struct objfile *objfile) } 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) { |