* buildsym.c (end_symtab): Make copy of dirname on symbol obstack.
This commit is contained in:
parent
4f3569faad
commit
8275e802a7
2 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Aug 6 10:56:01 1992 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
||||||
|
* buildsym.c (end_symtab): Make copy of dirname on symbol obstack.
|
||||||
|
|
||||||
Wed Aug 5 01:42:40 1992 John Gilmore (gnu at cygnus.com)
|
Wed Aug 5 01:42:40 1992 John Gilmore (gnu at cygnus.com)
|
||||||
|
|
||||||
* remote-udi.c: Update comments.
|
* remote-udi.c: Update comments.
|
||||||
|
|
|
@ -668,7 +668,18 @@ end_symtab (end_addr, sort_pending, sort_linevec, objfile)
|
||||||
{
|
{
|
||||||
symtab->linetable = NULL;
|
symtab->linetable = NULL;
|
||||||
}
|
}
|
||||||
symtab->dirname = subfile->dirname;
|
if (subfile->dirname)
|
||||||
|
{
|
||||||
|
/* Reallocate the dirname on the symbol obstack */
|
||||||
|
symtab->dirname = (char *)
|
||||||
|
obstack_alloc (&objfile -> symbol_obstack,
|
||||||
|
strlen (subfile -> dirname) + 1);
|
||||||
|
strcpy (symtab->dirname, subfile->dirname);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
symtab->dirname = NULL;
|
||||||
|
}
|
||||||
symtab->free_code = free_linetable;
|
symtab->free_code = free_linetable;
|
||||||
symtab->free_ptr = NULL;
|
symtab->free_ptr = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue