[PATCH 0/8] More xcoffread cleanups

Simon Marchi
2026-01-08T19:35:38Z

Here is another batch of cleanups for xcoffread.c, removing things that
are no longer used. I didn't manage to build GDB on one of the the AIX
machines on the compile farm. I did, however, copy an AIX executable to
my Linux workstation and checked that GDB found what seemed to me like a
sensible TOC offset value.

Simon Marchi (8):
gdb/xcoffread: remove name computation
gdb/xcoffread: remove read of .debug section
gdb/xcoffread: remove XCOFF_DATA macro
gdb/xcoffread: remove xcoff_symfile_info::{symtbl,symtbl_num_syms}
gdb/xcoffread: allocate symbol table using vector in scan_xcoff_symtab
gdb/xcoffread: simplify xcoff_secnum_to_sections
gdb/xcoffread: replace 2 switches with if
gdb/xcoffread: stylistic cleanup

gdb/xcoffread.c | 317 +++++++++++++-----------------------------------
1 file changed, 81 insertions(+), 236 deletions(-)

base-commit: 3e5d318177d372278796cfbbb13a4d75966cffd1
--
2.52.0