mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
obstack.
This commit is contained in:
@@ -1529,7 +1529,9 @@ dwarf2_build_psymtabs_hard (struct objfile *objfile, int mainline)
|
||||
objfile->static_psymbols.next);
|
||||
|
||||
if (comp_unit_die.dirname)
|
||||
pst->dirname = xstrdup (comp_unit_die.dirname);
|
||||
pst->dirname = obsavestring (comp_unit_die.dirname,
|
||||
strlen (comp_unit_die.dirname),
|
||||
&objfile->objfile_obstack);
|
||||
|
||||
pst->read_symtab_private = (char *) this_cu;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user