summaryrefslogtreecommitdiff
path: root/gdb/source.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/source.c
parentdb8acf26ca5d066a8cb97b8a80590886cfd04b77 (diff)
downloadbinutils-gdb-982526a134330b9524daea65f26ba2cfe36cb275.tar.gz
* 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/source.c')
-rw-r--r--gdb/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c
index b1e9c387473..e2b6fa90f67 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -889,7 +889,7 @@ find_and_open_source (struct objfile *objfile,
{
char *tmp_fullname;
tmp_fullname = *fullname;
- *fullname = mstrsave (objfile->md, *fullname);
+ *fullname = xstrdup (tmp_fullname);
xfree (tmp_fullname);
}
return result;