aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-09-28 18:02:00 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-09-28 18:02:00 +0000
commit67b9f39403addf64801bc97a66e34a5dd2a93252 (patch)
treecc9c25d33632b44a1cefa4e4722617c7aea2b35b
parentfac75dfebb7a150a3b43619bf47ff965909a18ab (diff)
downloadgdb-67b9f39403addf64801bc97a66e34a5dd2a93252.zip
gdb-67b9f39403addf64801bc97a66e34a5dd2a93252.tar.gz
gdb-67b9f39403addf64801bc97a66e34a5dd2a93252.tar.bz2
* xcoffread.c (read_xcoff_symtab, case C_FILE):
Set main_aux before using it.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/xcoffread.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 15849f3..d81e98d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 57d3f40..70f501d 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -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;