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

simon.marchi
2026-02-17T19:54:21Z

v2 of:

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

The main change is the inclusion of patch "gdb: make
expanded_symbols_functions hold compunit symtabs", which makes
expanded_symbols_functions only search the list of compunit_symtabs it
is given.

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 | 4 +
gdb/ctfread.c | 705 ++++++++----------
gdb/ctfread.h | 2 +-
gdb/doc/gdb.texinfo | 7 +
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 ------------------
11 files changed, 321 insertions(+), 2713 deletions(-)
delete mode 100644 gdb/psymtab.c
delete mode 100644 gdb/psymtab.h

base-commit: 625b835f63153677bf614de266c7bc8963163ffc
--
2.53.0