diff options
author | Tom Tromey <tromey@redhat.com> | 2008-08-29 17:06:05 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-08-29 17:06:05 +0000 |
commit | a683b3c093845042fd839b867385ad8348c7e51a (patch) | |
tree | baf032b820308a872119a5cf208f346696c501ea /gdb | |
parent | c879dfc576dd2423f55f3f2744b96f6977c2a2e9 (diff) | |
download | gdb-a683b3c093845042fd839b867385ad8348c7e51a.zip gdb-a683b3c093845042fd839b867385ad8348c7e51a.tar.gz gdb-a683b3c093845042fd839b867385ad8348c7e51a.tar.bz2 |
* dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
obstack.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 23ec019..ece02f1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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". diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 5cb444e..95a85b1 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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; |