diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-08-12 13:09:05 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-09-13 07:38:56 -0400 |
commit | edb09798f2cd60b72591da9fe5f2e1bee50c5d83 (patch) | |
tree | 7206d3d1487dd5410317356f42fade2b9d76d29d /gdb/python/lib | |
parent | 8b8f98ad2badcd859f429dd9c735671985aff762 (diff) | |
download | binutils-edb09798f2cd60b72591da9fe5f2e1bee50c5d83.zip binutils-edb09798f2cd60b72591da9fe5f2e1bee50c5d83.tar.gz binutils-edb09798f2cd60b72591da9fe5f2e1bee50c5d83.tar.bz2 |
gdb/solib: use owning_intrusive_list for solib list
Functions implementing `solib_ops::current_sos` return a list of solib
object, transferring the ownership to their callers. However, the
return type, `intrusive_list<solib>`, does not reflect that.
Also, some of these functions build these lists incrementally, reading
this from the target for each solib. If a target read were to throw,
for instance, the already created solibs would just be leaked.
Change `solib_ops::current_sos` to return an owning_intrusive_list to
address that. Change `program_space::so_list` to be an
owning_intrusive_list as well. This also saves us doing a few manual
deletes.
Change-Id: I6e4071d49744874491625075136c59cce8e608d4
Reviewed-by: Keith Seitz <keiths@redhat.com>
Diffstat (limited to 'gdb/python/lib')
0 files changed, 0 insertions, 0 deletions