* xcoffread.c (coff_getfilename): Do not strip directory component
authorPeter Schauer <Peter.Schauer@mytum.de>
Mon, 28 Jul 1997 09:56:24 +0000 (09:56 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Mon, 28 Jul 1997 09:56:24 +0000 (09:56 +0000)
of filename.

gdb/ChangeLog
gdb/xcoffread.c

index 9029da9f9ad92d292b78b4e53400e8b8d5dfdd85..fd62f501de8e8ad39a6786a5d09841244a809ed1 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jul 28 02:54:31 1997  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
+
+       * xcoffread.c (coff_getfilename):  Do not strip directory component
+       of filename.
+
 Fri Jul 25 16:48:18 1997  Jeffrey A Law  (law@cygnus.com)
 
        * top.c (execute_command): Force cleanup of alloca areas.
index 5ec0638c621612236cd4326437efa138793903bc..92001471b3343f8bc58bec7abf9613ca61027bc7 100644 (file)
@@ -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.  */
This page took 0.026692 seconds and 4 git commands to generate.