aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.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/utils.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/utils.c')
-rw-r--r--gdb/utils.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 1c7b738..e30808c 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1168,21 +1168,6 @@ savestring (const char *ptr, size_t size)
return p;
}
-char *
-msavestring (void *md, const char *ptr, size_t size)
-{
- char *p = (char *) xmalloc (size + 1);
- memcpy (p, ptr, size);
- p[size] = 0;
- return p;
-}
-
-char *
-mstrsave (void *md, const char *ptr)
-{
- return (msavestring (md, ptr, strlen (ptr)));
-}
-
void
print_spaces (int n, struct ui_file *file)
{