aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1997-07-28 09:56:24 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1997-07-28 09:56:24 +0000
commit4e9e52ab08643d4276363e7034e2075a203eb6ab (patch)
tree227c209820bbe1896b66fb053e7151e614e26ecd /gdb/xcoffread.c
parentf366291b4f555e1b02fb044ee0985985b0545ee7 (diff)
downloadgdb-4e9e52ab08643d4276363e7034e2075a203eb6ab.zip
gdb-4e9e52ab08643d4276363e7034e2075a203eb6ab.tar.gz
gdb-4e9e52ab08643d4276363e7034e2075a203eb6ab.tar.bz2
* xcoffread.c (coff_getfilename): Do not strip directory component
of filename.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 5ec0638..9200147 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -1619,9 +1619,8 @@ process_xcoff_symbol (cs, objfile)
return sym2;
}
-/* Extract the file name from the aux entry of a C_FILE symbol. Return
- only the last component of the name. Result is in static storage and
- is only good for temporary use. */
+/* Extract the file name from the aux entry of a C_FILE symbol.
+ Result is in static storage and is only good for temporary use. */
static char *
coff_getfilename (aux_entry, objfile)
@@ -1629,8 +1628,6 @@ coff_getfilename (aux_entry, objfile)
struct objfile *objfile;
{
static char buffer[BUFSIZ];
- register char *temp;
- char *result;
if (aux_entry->x_file.x_n.x_zeroes == 0)
strcpy (buffer,
@@ -1641,14 +1638,7 @@ coff_getfilename (aux_entry, objfile)
strncpy (buffer, aux_entry->x_file.x_fname, FILNMLEN);
buffer[FILNMLEN] = '\0';
}
- result = buffer;
-
- /* FIXME: We should not be throwing away the information about what
- directory. It should go into dirname of the symtab, or some such
- place. */
- if ((temp = strrchr (result, '/')) != NULL)
- result = temp + 1;
- return (result);
+ return (buffer);
}
/* Set *SYMBOL to symbol number symno in symtbl. */