2003-05-02 David Carlton <carlton@bactrian.org>

* objfiles.c (allocate_objfile): For anonymous objfiles, allocate
	the name with mstrsave.
This commit is contained in:
David Carlton 2003-05-02 17:00:57 +00:00
parent 4d2e1ff0a6
commit a9c0dc7f03
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-05-02 David Carlton <carlton@bactrian.org>
* objfiles.c (allocate_objfile): For anonymous objfiles, allocate
the name with mstrsave.
2003-05-02 Elena Zannoni <ezannoni@redhat.com>
* charset.c (GDB_DEFAULT_TARGET_CHARSET,

View File

@ -325,7 +325,7 @@ allocate_objfile (bfd *abfd, int flags)
}
else
{
objfile->name = "<<anonymous objfile>>";
objfile->name = mstrsave (objfile->md, "<<anonymous objfile>>");
}
/* Initialize the section indexes for this objfile, so that we can