aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-05-02 17:00:57 +0000
committerDavid Carlton <carlton@bactrian.org>2003-05-02 17:00:57 +0000
commita9c0dc7f03b2dd7e4864542e42d9ade9df6e9f57 (patch)
treeccaf6137e63bf12cb24aed841de19a17a0106cdd /gdb/objfiles.c
parentMake the R_XSTORMY16_8 and R_XSTORMY16_16 relocs detect and complain about (diff)
downloadbinutils-gdb-a9c0dc7f03b2dd7e4864542e42d9ade9df6e9f57.tar.gz
binutils-gdb-a9c0dc7f03b2dd7e4864542e42d9ade9df6e9f57.tar.bz2
binutils-gdb-a9c0dc7f03b2dd7e4864542e42d9ade9df6e9f57.zip
2003-05-02 David Carlton <carlton@bactrian.org>
* objfiles.c (allocate_objfile): For anonymous objfiles, allocate the name with mstrsave.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c2
1 files changed, 1 insertions, 1 deletions
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 = "<<anonymous objfile>>";
+ objfile->name = mstrsave (objfile->md, "<<anonymous objfile>>");
}
/* Initialize the section indexes for this objfile, so that we can