Reset inferior::control on inferior exit
authorYao Qi <yao.qi@linaro.org>
Thu, 15 Feb 2018 14:48:30 +0000 (14:48 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 15 Feb 2018 14:48:30 +0000 (14:48 +0000)
commit85046ae23f853bfd01db6b4a840e80220487bffd
tree6f25802b0d3a35f6c9d89468c8c93b06bdeafaad
parent355c559b74518b67eb113e635363cc890058746c
Reset inferior::control on inferior exit

When we kill an inferior, the inferior is not deleted.  What is more, it
is reused when the new process is created, so we need to reset inferior's
state when it exits.

gdb:

2018-02-15  Yao Qi  <yao.qi@linaro.org>

PR gdb/22849
* inferior.c (exit_inferior_1): Reset inf->control.
gdb/ChangeLog
gdb/inferior.c