Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
[deliverable/binutils-gdb.git] / gdb / xcoffread.c
index de8f77ac46e1db2f24326a4508f1a269cea77823..50a3e29125c9b043ae38e4222d97fd91947785a7 100644 (file)
@@ -1429,8 +1429,9 @@ function_entry_point:
       /* XCOFF, according to the AIX 3.2 documentation, puts the filename
         in cs->c_name.  But xlc 1.3.0.2 has decided to do things the
         standard COFF way and put it in the auxent.  We use the auxent if
-        there is one, otherwise use the name.  Simple enough.  */
-      if (cs->c_naux > 0)
+        the symbol is ".file" and an auxent exists, otherwise use the symbol
+        itself.  Simple enough.  */
+      if (!strcmp (cs->c_name, ".file") && cs->c_naux > 0)
        filestring = coff_getfilename (&main_aux);
       else
        filestring = cs->c_name;
This page took 0.024842 seconds and 4 git commands to generate.