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
commitea8b10443b1cf39054a5c30e65ecf24ad860482d (patch)
treee2040d4f22c76685b670fb34c39f5487037373b6 /gdb/python/py-xmethods.c
parent974c8ea576353d58fc024898dbc349da3c13984b (diff)
downloadbinutils-ea8b10443b1cf39054a5c30e65ecf24ad860482d.zip
binutils-ea8b10443b1cf39054a5c30e65ecf24ad860482d.tar.gz
binutils-ea8b10443b1cf39054a5c30e65ecf24ad860482d.tar.bz2
gdb/python: do not hold on gdb.Type object from gdb.Value
Previous commit changed type_to_type_object() so each time it is called with particular struct value* it returns the same object. Therefore there's no longer need to hold on type objects (gdb.Type) from struct value_object in order to preserve identity of gdb.Type objects held in value_object::type and value_object::dynamic_type members. 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