* xcoffread.c (read_xcoff_symtab, case C_FILE):
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 28 Sep 1994 18:02:00 +0000 (18:02 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 28 Sep 1994 18:02:00 +0000 (18:02 +0000)
Set main_aux before using it.

gdb/ChangeLog
gdb/xcoffread.c

index 15849f3082ba646e331ccf3bbdb56452634acb51..d81e98dc08374678cb21f4957b84d0e66b38a7cb 100644 (file)
@@ -1,5 +1,8 @@
 Wed Sep 28 08:59:14 1994  Jim Kingdon  (kingdon@cygnus.com)
 
+       * xcoffread.c (read_xcoff_symtab, case C_FILE):
+       Set main_aux before using it.
+
        * xcoffexec.c (exec_close): If quitting, don't call clear_symtab_users.
 
        * xcoffread.c (read_xcoff_symtab): Process XTY_LD symbols we were
index 57d3f40624cfe20c606fa254b3071fd8d9dbec05..70f501dc2988c8513ad1f00132fd9ffa24e3ae13 100644 (file)
@@ -1459,7 +1459,11 @@ read_xcoff_symtab (objfile, nsyms)
         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);
+       {
+         bfd_coff_swap_aux_in (abfd, raw_auxptr, cs->c_type, cs->c_sclass,
+                               0, cs->c_naux, &main_aux);
+         filestring = coff_getfilename (&main_aux);
+       }
       else
        filestring = cs->c_name;