* dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on

obstack.
This commit is contained in:
Tom Tromey 2008-08-29 17:06:05 +00:00
parent c879dfc576
commit a683b3c093
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-29 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
obstack.
2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
* remote.c: Include "gdb_stat.h".

View File

@ -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;