* debug.c (debug_append_filename): Remove.
authorIan Lance Taylor <ian@airs.com>
Tue, 23 Jan 1996 20:59:18 +0000 (20:59 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 23 Jan 1996 20:59:18 +0000 (20:59 +0000)
* debug.h (debug_append_filename): Don't declare.

binutils/debug.c
binutils/debug.h

index 111a6bbc7e105dffe1f3a06491671f1efcccda4f..91235c177514b9e7b25fcc6f5dff83e51eb0685b 100644 (file)
@@ -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.  */
 
index 05c450bbc89e4f1f8781fdffe7c14e1d42ef2be8..8748f0a22dec320000e2f2700d90912bcba32d5e 100644 (file)
@@ -432,10 +432,6 @@ extern PTR debug_init PARAMS ((void));
 
 extern boolean debug_set_filename PARAMS ((PTR, const char *));
 
-/* Append a string to the source filename.  */
-
-extern boolean debug_append_filename PARAMS ((PTR, const char *));
-
 /* Change source files to the given file name.  This is used for
    include files in a single compilation unit.  */
 
This page took 0.02912 seconds and 4 git commands to generate.