[0/2] move call to clear_symtab_users

Message ID cover.1774966728.git.aburgess@redhat.com
Headers
Series move call to clear_symtab_users |

Message

Andrew Burgess March 31, 2026, 2:20 p.m. UTC
  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