diff options
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index ac0ee0a..fa59ee2 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1805,9 +1805,7 @@ allocate_psymtab (const char *filename, struct objfile *objfile) objfile->free_psymtabs = psymtab->next; } else - psymtab = (struct partial_symtab *) - obstack_alloc (&objfile->objfile_obstack, - sizeof (struct partial_symtab)); + psymtab = XOBNEW (&objfile->objfile_obstack, partial_symtab); memset (psymtab, 0, sizeof (struct partial_symtab)); psymtab->filename |