OSDN Git Service

always clear pending command queue before posting shutdown commands
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 11 Nov 2009 11:41:06 +0000 (12:41 +0100)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 11 Nov 2009 11:41:06 +0000 (12:41 +0100)
commit4d45ad00037a056e52c74dca8a5c00ab2763da5d
tree30fd521917a48bb19cdc306dae250ec43bafb498
parent5bd5fa63bf6caf90170f9e703e0dba433fe407a7
always clear pending command queue before posting shutdown commands

this ensures that, among other things, we won't get into this scenario:
- process is running
- interrupt is requested by user
- termination is requested by user
- before interrupt takes effect, the process terminates
=> shutdown is called
=> exit is also queued, as there is already a queued kill
=> nothing happens, as there will never be a stop response

Reviewed-by: hjk
src/plugins/debugger/gdb/gdbengine.cpp