[PATCH v3 0/9] Make CTF reader build full symtabs, get rid of psymtab

Simon Marchi
2026-02-28T03:54:53Z

This is v3 of:

https://inbox.sourceware.org/gdb-patches/20260217195329.3833518-1-simon.marchi@polymtl.ca/

The change is that the last patch now includes necessary test changes
(to avoid regressions), plus doc and NEWS changes.

Simon Marchi (9):
gdb/ctf: add debug logging in ctfread.c
gdb/ctf: add unique_ptr types
gdb/ctf: editorial renames
gdb/ctf: use ctf_per_objfile in ctf_archive_iter_psymtab_data and
ctf_context
gdb/ctf: check return value of ctf_type_align
gdb/ctf: add scoped_time_it in elfctf_build_psymtabs
gdb: make expanded_symbols_functions hold compunit symtabs
gdb/ctf: don't use psymtabs, create symtabs directly
gdb: remove psymtab.{c,h}

gdb/Makefile.in | 2 -
gdb/NEWS | 12 +
gdb/ctfread.c | 737 ++++------
gdb/ctfread.h | 2 +-
gdb/doc/gdb.texinfo | 102 +-
gdb/elfread.c | 8 +-
gdb/expanded-symbol.c | 16 +-
gdb/expanded-symbol.h | 8 +
gdb/jit.c | 16 +-
gdb/psymtab.c | 1575 ----------------------
gdb/psymtab.h | 691 ----------
gdb/testsuite/gdb.ada/maint_with_ada.exp | 2 -
gdb/testsuite/gdb.base/check-psymtab.c | 28 -
gdb/testsuite/gdb.base/check-psymtab.exp | 26 -
gdb/testsuite/gdb.base/main-psymtab.exp | 38 -
gdb/testsuite/gdb.base/maint.exp | 96 +-
gdb/testsuite/gdb.base/readnever.exp | 4 -
gdb/testsuite/lib/gdb.exp | 22 -
18 files changed, 375 insertions(+), 3010 deletions(-)
delete mode 100644 gdb/psymtab.c
delete mode 100644 gdb/psymtab.h
delete mode 100644 gdb/testsuite/gdb.base/check-psymtab.c
delete mode 100644 gdb/testsuite/gdb.base/check-psymtab.exp
delete mode 100644 gdb/testsuite/gdb.base/main-psymtab.exp

base-commit: d7f532cb3a46527c56963a2c713e29cee4f64eee
--
2.53.0