aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-xmethods.c
diff options
context:
space:
mode:
authorJan Vrany <jan.vrany@labware.com>2025-03-19 21:12:53 +0000
committerJan Vrany <jan.vrany@labware.com>2025-03-19 21:12:53 +0000
commitaaefa9023e6c7835c37ad62a4542b7171651479e (patch)
tree8dd3007274a82b8925bef21763a2f6be1faa8ccb /gdb/python/py-xmethods.c
parentd518cb9be11af64951af8eb6f998751097f58a1c (diff)
downloadbinutils-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