aboutsummaryrefslogtreecommitdiff
path: root/binutils/debug.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-23 20:59:18 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-23 20:59:18 +0000
commit796369aa9636aa1a745886abd07f77eeac63762e (patch)
treed6b432700838330a5a7fce956cbc9dd79cd12d7a /binutils/debug.c
parentc80b0dbaee493442fef00bbfd7a34ebcc238d8e4 (diff)
downloadgdb-796369aa9636aa1a745886abd07f77eeac63762e.zip
gdb-796369aa9636aa1a745886abd07f77eeac63762e.tar.gz
gdb-796369aa9636aa1a745886abd07f77eeac63762e.tar.bz2
* debug.c (debug_append_filename): Remove.
* debug.h (debug_append_filename): Don't declare.
Diffstat (limited to 'binutils/debug.c')
-rw-r--r--binutils/debug.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/binutils/debug.c b/binutils/debug.c
index 111a6bb..91235c1 100644
--- a/binutils/debug.c
+++ b/binutils/debug.c
@@ -664,34 +664,6 @@ debug_set_filename (handle, name)
return true;
}
-/* Append a string to the source filename. */
-
-boolean
-debug_append_filename (handle, string)
- PTR handle;
- const char *string;
-{
- struct debug_handle *info = (struct debug_handle *) handle;
- char *n;
-
- if (string == NULL)
- string = "";
-
- if (info->current_unit == NULL)
- {
- debug_error ("debug_append_filename: no current file");
- return false;
- }
-
- n = (char *) xmalloc (strlen (info->current_unit->files->filename)
- + strlen (string)
- + 1);
- sprintf (n, "%s%s", info->current_unit->files->filename, string);
- info->current_unit->files->filename = n;
-
- return true;
-}
-
/* Change source files to the given file name. This is used for
include files in a single compilation unit. */