2003-05-02 David Carlton <carlton@bactrian.org>
authorDavid Carlton <carlton@bactrian.org>
Fri, 2 May 2003 17:00:57 +0000 (17:00 +0000)
committerDavid Carlton <carlton@bactrian.org>
Fri, 2 May 2003 17:00:57 +0000 (17:00 +0000)
* objfiles.c (allocate_objfile): For anonymous objfiles, allocate
the name with mstrsave.

gdb/ChangeLog
gdb/objfiles.c

index 1826ec795af6d78ed349251f6dd98c3d98315c23..89143753f2c765b2fe7d73c03cd2e1894b379f42 100644 (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,
index 32a57fab2ff606363b9ae290ce05b3a7a3e524e3..59e03b93e9be47cc2d9f31c1a76cdb745254c8b6 100644 (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