aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.pascal
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-08-12 13:09:05 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-09-13 07:38:56 -0400
commitedb09798f2cd60b72591da9fe5f2e1bee50c5d83 (patch)
tree7206d3d1487dd5410317356f42fade2b9d76d29d /gdb/testsuite/gdb.pascal
parent8b8f98ad2badcd859f429dd9c735671985aff762 (diff)
downloadgdb-master.zip
gdb-master.tar.gz
gdb-master.tar.bz2
gdb/solib: use owning_intrusive_list for solib listHEADmaster
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/testsuite/gdb.pascal')
0 files changed, 0 insertions, 0 deletions