diff options
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) { |