aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-09-30 19:57:54 +0000
committerMark Kettenis <kettenis@gnu.org>2004-09-30 19:57:54 +0000
commit982526a134330b9524daea65f26ba2cfe36cb275 (patch)
tree722eda748c756f02e37ab6a7d9a8ed992431fe54 /gdb/objfiles.c
parentdb8acf26ca5d066a8cb97b8a80590886cfd04b77 (diff)
downloadgdb-982526a134330b9524daea65f26ba2cfe36cb275.zip
gdb-982526a134330b9524daea65f26ba2cfe36cb275.tar.gz
gdb-982526a134330b9524daea65f26ba2cfe36cb275.tar.bz2
* 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.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 69f61d4..3c4e0b4 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -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