diff options
author | Jan Vrany <jan.vrany@labware.com> | 2025-03-19 21:12:53 +0000 |
---|---|---|
committer | Jan Vrany <jan.vrany@labware.com> | 2025-03-19 21:12:53 +0000 |
commit | aaefa9023e6c7835c37ad62a4542b7171651479e (patch) | |
tree | 8dd3007274a82b8925bef21763a2f6be1faa8ccb /gdb/python/py-xmethods.c | |
parent | d518cb9be11af64951af8eb6f998751097f58a1c (diff) | |
download | binutils-aaefa9023e6c7835c37ad62a4542b7171651479e.zip binutils-aaefa9023e6c7835c37ad62a4542b7171651479e.tar.gz binutils-aaefa9023e6c7835c37ad62a4542b7171651479e.tar.bz2 |
gdb/python: do not hold on gdb.Symtab object from gdb.Symtab_and_line
Previous commit changed symtab_to_symtab_object() so each time it is
called with particula struct symtab* it returns the same object.
Therefore there's no longer need to hold on symtab object (gdb.Symtab)
from struct sal_object in order to preserve identity of Symtab object
held in gdb.Symtab_and_line.symtab property. This in turn allowed for
some simplification in various functions.
While at it I changed a couple of NULLs to nullptrs.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-xmethods.c')
0 files changed, 0 insertions, 0 deletions