mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user