aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-unwind.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
commit14b8ef758c634e0c1460010f2125799d0588a194 (patch)
tree43aad567be78863c54339271b7d0b2615e72fe24 /gdb/python/py-unwind.c
parent35ad2b260d39da9990bdff8695eee218b9aa6ead (diff)
downloadbinutils-14b8ef758c634e0c1460010f2125799d0588a194.zip
binutils-14b8ef758c634e0c1460010f2125799d0588a194.tar.gz
binutils-14b8ef758c634e0c1460010f2125799d0588a194.tar.bz2
gdb/python: preserve identity for gdb.Symtab objects
This commit changes symtab_to_symtab_object() so that each it is called with a particular struct symtab * it returns the very same gdb.Symtab object. This is done by searching per-objfile linked list of instances and - if found - return it rather than creating new gdb.Symtab. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-unwind.c')
0 files changed, 0 insertions, 0 deletions