[PATCH 0/2] move call to clear_symtab_users

Andrew Burgess
2026-03-31T14:20:58Z

While working on another patch I ran into an issue with GDB's tracking
of auto-loaded scripts. This highlighted an issue with how
clear_symtab_users is called when working with separate debug info files.

Patch #1 cleans up an existing test making it easier to add additional
tests.

Patch #2 adds a new test and adjusts GDB so the test passes.

Thanks,
Andrew

---

Andrew Burgess (2):
gdb/testsuite: modernise the gdb.python/py-section-script.exp test
gdb: move call to clear_symtab_users out from finish_new_objfile

gdb/symfile.c | 33 ++--
.../gdb.python/py-section-script.exp | 169 ++++++++++++------
2 files changed, 129 insertions(+), 73 deletions(-)

base-commit: 82e460365ba9729e1e66b5f146c17a2ed1b4646c
--
2.25.4