Unable to recover from loss-of-target without `abort()`
xobs opened this issue · comments
It is not possible to recover from the loss of a target.
When a target is lost, an exception is raised. The target list is then freed:
Lines 87 to 92 in e4da644
The problem comes from the fact that target_list_free()
is not contained within a try {}
block. If there is still a target attached it will attempt to do various things such as resetting breakpoints on the target which no longer exists which will raise another exception and cause a reboot.