From: David Carlton Date: Fri, 2 May 2003 17:00:57 +0000 (+0000) Subject: 2003-05-02 David Carlton X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9c0dc7f03b2dd7e4864542e42d9ade9df6e9f57;p=binutils-gdb.git 2003-05-02 David Carlton * objfiles.c (allocate_objfile): For anonymous objfiles, allocate the name with mstrsave. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1826ec795af..89143753f2c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-05-02 David Carlton + + * objfiles.c (allocate_objfile): For anonymous objfiles, allocate + the name with mstrsave. + 2003-05-02 Elena Zannoni * charset.c (GDB_DEFAULT_TARGET_CHARSET, diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 32a57fab2ff..59e03b93e9b 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -325,7 +325,7 @@ allocate_objfile (bfd *abfd, int flags) } else { - objfile->name = "<>"; + objfile->name = mstrsave (objfile->md, "<>"); } /* Initialize the section indexes for this objfile, so that we can