diff options
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 08eff07..861512e 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1739,8 +1739,8 @@ allocate_psymtab (const char *filename, struct objfile *objfile) sizeof (struct partial_symtab)); memset (psymtab, 0, sizeof (struct partial_symtab)); - psymtab->filename = obsavestring (filename, strlen (filename), - &objfile->objfile_obstack); + psymtab->filename = obstack_copy0 (&objfile->objfile_obstack, + filename, strlen (filename)); psymtab->symtab = NULL; /* Prepend it to the psymtab list for the objfile it belongs to. |