projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c879dfc
)
* dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
author
Tom Tromey
<tromey@redhat.com>
Fri, 29 Aug 2008 17:06:05 +0000
(17:06 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Fri, 29 Aug 2008 17:06:05 +0000
(17:06 +0000)
obstack.
gdb/ChangeLog
patch
|
blob
|
history
gdb/dwarf2read.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 23ec019a191efb063bd8549bffff488ddf417549..ece02f1907a8c32b61e52e82995f222aa25f42aa 100644
(file)
--- 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 5cb444ebdf4a569da70078bfabf6169443bdb5d6..95a85b1ad534a9fdd1c0faa90f499f9810bc9c88 100644
(file)
--- 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;