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 | d518cb9be11af64951af8eb6f998751097f58a1c (patch) | |
tree | 557343234fd910c6b07c363293036bb9b76ff1e2 /gdb/python/py-infevents.c | |
parent | 14b8ef758c634e0c1460010f2125799d0588a194 (diff) | |
download | binutils-d518cb9be11af64951af8eb6f998751097f58a1c.zip binutils-d518cb9be11af64951af8eb6f998751097f58a1c.tar.gz binutils-d518cb9be11af64951af8eb6f998751097f58a1c.tar.bz2 |
gdb/python: preserve identity for gdb.Symbol objects
This commit changes symbol_to_symbol_object() so that each it is called
with a particular struct symbol * it returns the very same gdb.Symbol
object.
This is done in the same way as for gdb.Symtab objects in earlier commit
("gdb/python: preserve identity for gdb.Symtab objects") except that
symbols may be either objfile-owned or arch-owned.
Prior this commit, arch-owned objects we not put into any list (like
objfile-owned ones) so they could not be easily looked up. This commit
changes the code so arch-owned list are put into per-architecture list
which is then used (solely) for looking up arch-owned gdb.Symbol.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-infevents.c')
0 files changed, 0 insertions, 0 deletions