aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-03-14 00:32:49 -0400
committerSimon Marchi <simon.marchi@efficios.com>2025-03-14 12:23:40 -0400
commit8c6d5bcf9b83b2d8347238c456a9fef8fdd6bab8 (patch)
tree070dd702f852cacb65466cbd57424ccaf1414dfe /gdb/python/python.c
parent4fca47b93866f96db4723cc5f8570a66df9a7127 (diff)
downloadbinutils-8c6d5bcf9b83b2d8347238c456a9fef8fdd6bab8.zip
binutils-8c6d5bcf9b83b2d8347238c456a9fef8fdd6bab8.tar.gz
binutils-8c6d5bcf9b83b2d8347238c456a9fef8fdd6bab8.tar.bz2
gdb/dwarf: remove cutu_reader::keep, add cutu_reader::release_cu
This is a bit subjective, but I often struggle to understand what cutu_reader::keep is meant to do (keep what, where). Perhaps it's just a question of bad naming, but I think it's a bit confusing for cutu_reader to transfer the ownership of the dwarf2_cu to the per_objfile directly. Add the cutu::release_cu method and make the caller of cutu_reader transfer the ownership to the per_objfile object. Right now, it is theoretically possible for release_cu to return nullptr, so I made callers check the return value. A patch later in this series will change release_cu to ensure it always return non-nullptr, so those callers will get simplified. Change-Id: I3103ff894d1654a95c9d69001073c218501c988a Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions