* defs.h (msavestring, mstrsave): Remove prototypes.

* utils.c (msavestring, mstrsave): Remove functions.
* objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
* solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
of mstrsave.
* source.c (find_and_open_source): Use xstrdup instead of
mstrsave.
This commit is contained in:
Mark Kettenis
2004-09-30 19:57:54 +00:00
parent db8acf26ca
commit 982526a134
6 changed files with 14 additions and 23 deletions

View File

@@ -184,7 +184,7 @@ allocate_objfile (bfd *abfd, int flags)
}
if (abfd != NULL)
{
objfile->name = mstrsave (objfile->md, bfd_get_filename (abfd));
objfile->name = xstrdup (bfd_get_filename (abfd));
objfile->mtime = bfd_get_mtime (abfd);
/* Build section table. */
@@ -197,7 +197,7 @@ allocate_objfile (bfd *abfd, int flags)
}
else
{
objfile->name = mstrsave (objfile->md, "<<anonymous objfile>>");
objfile->name = xstrdup ("<<anonymous objfile>>");
}
/* Initialize the section indexes for this objfile, so that we can