mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
* debug.c (debug_append_filename): Remove.
* debug.h (debug_append_filename): Don't declare.
This commit is contained in:
@ -664,34 +664,6 @@ debug_set_filename (handle, name)
|
|||||||
return true;
|
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
|
/* Change source files to the given file name. This is used for
|
||||||
include files in a single compilation unit. */
|
include files in a single compilation unit. */
|
||||||
|
|
||||||
|
@ -432,10 +432,6 @@ extern PTR debug_init PARAMS ((void));
|
|||||||
|
|
||||||
extern boolean debug_set_filename PARAMS ((PTR, const char *));
|
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
|
/* Change source files to the given file name. This is used for
|
||||||
include files in a single compilation unit. */
|
include files in a single compilation unit. */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user