]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove OBJSTAT and OBJSTATS macros master
authorTom Tromey <tromey@adacore.com>
Fri, 17 Apr 2026 18:34:20 +0000 (12:34 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 20 Apr 2026 14:26:27 +0000 (08:26 -0600)
commit9b9cbb09d85e40adb9a22f3c97de74b6c9c5e205
treee469b67fca271d53ec09e0dea3c0a9c0f9e207b4
parent45ae1b13a444e56fb7a068ed46839989a648b421
Remove OBJSTAT and OBJSTATS macros

The OBJSTATS macro seems pretty pointless, so I removed it.  Then when
looking at the OBJSTAT macro as well, I decided to remove it and also
struct objstats.

After this patch, symbols are allocated using a template method that
automatically updates the n_syms member.  This cleans up the code a
little.

Also, nothing ever set objstats::sz_strtab, so this is removed.

Regression tested on x86-64 Fedora 43.

Approved-by: Kevin Buettner <kevinb@redhat.com>
gdb/ctfread.c
gdb/dwarf2/read.c
gdb/gdbtypes.c
gdb/objfiles.h
gdb/symmisc.c