]> Git Repo - binutils.git/commitdiff
Tue May 17 16:45:20 1994 Stan Shebs ([email protected])
authorStan Shebs <[email protected]>
Wed, 18 May 1994 03:13:09 +0000 (03:13 +0000)
committerStan Shebs <[email protected]>
Wed, 18 May 1994 03:13:09 +0000 (03:13 +0000)
* xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
the auxent if the symbol's name is ".file".  From David Edelsohn
<[email protected]>.

gdb/ChangeLog
gdb/xcoffread.c

index 4895a0f2726db8d484364cb2e9a0f7106f2821b3..56ccbbdd22dd5bb95e5c33323c852d79f99c5afc 100644 (file)
@@ -1,3 +1,9 @@
+Tue May 17 16:45:20 1994  Stan Shebs  ([email protected])
+
+       * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
+       the auxent if the symbol's name is ".file".  From David Edelsohn 
+       <[email protected]>.
+
 Tue May 17 11:08:22 1994  Jim Kingdon  ([email protected])
 
        * breakpoint.c (breakpoint_1): Fix typo.
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.029366 seconds and 4 git commands to generate.