diff options
author | Yao Qi <yao.qi@linaro.org> | 2018-02-15 14:48:30 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2018-02-15 14:48:30 +0000 |
commit | 85046ae23f853bfd01db6b4a840e80220487bffd (patch) | |
tree | 6f25802b0d3a35f6c9d89468c8c93b06bdeafaad /gdb/inferior.c | |
parent | 355c559b74518b67eb113e635363cc890058746c (diff) | |
download | gdb-85046ae23f853bfd01db6b4a840e80220487bffd.zip gdb-85046ae23f853bfd01db6b4a840e80220487bffd.tar.gz gdb-85046ae23f853bfd01db6b4a840e80220487bffd.tar.bz2 |
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.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r-- | gdb/inferior.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c index 38b7369..880f25d 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -224,6 +224,8 @@ exit_inferior_1 (struct inferior *inftoex, int silent) } inf->pending_detach = 0; + /* Reset it. */ + inf->control = {NO_STOP_QUIETLY}; } void |