aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-09-22 18:11:30 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-12-14 13:57:22 +0000
commit740a579fd5f5cd56bfb42a3f62c61ffd42d43186 (patch)
treeb2eb14597b6f799a94a82bca55f3630824b79e9b /gdb/NEWS
parentc8181f706f5a481e9667195d1f5d1623db6cc7f2 (diff)
downloadbinutils-740a579fd5f5cd56bfb42a3f62c61ffd42d43186.zip
binutils-740a579fd5f5cd56bfb42a3f62c61ffd42d43186.tar.gz
binutils-740a579fd5f5cd56bfb42a3f62c61ffd42d43186.tar.bz2
gdb: ensure all targets are popped before an inferior is destructed
Now that the inferiors target_stack automatically manages target reference counts, we might think that we don't need to unpush targets when an inferior is deleted... ...unfortunately that is not the case. The inferior::unpush function can do some work depending on the type of target, so it is important that we still pass through this function. To ensure that this is the case, in this commit I've added an assert to inferior::~inferior that ensures the inferior's target_stack is empty (except for the ever present dummy_target). I've then added a pop_all_targets call to delete_inferior, otherwise the new assert will fire in, e.g. the gdb.python/py-inferior.exp test.
Diffstat (limited to 'gdb/NEWS')
0 files changed, 0 insertions, 0 deletions