aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
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 /gdb/xcoffread.c
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.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c6
1 files changed, 5 insertions, 1 deletions
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;