From 67b9f39403addf64801bc97a66e34a5dd2a93252 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 28 Sep 1994 18:02:00 +0000 Subject: [PATCH] * xcoffread.c (read_xcoff_symtab, case C_FILE): Set main_aux before using it. --- gdb/ChangeLog | 3 +++ gdb/xcoffread.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 15849f3082b..d81e98dc083 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 57d3f40624c..70f501dc298 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; -- 2.30.2