Fix terminated event
authorAlexander Aksenov <a.aksenov@samsung.com>
Mon, 18 Jun 2018 16:00:06 +0000 (19:00 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Mon, 18 Jun 2018 16:05:35 +0000 (19:05 +0300)
commitbf66721d7ee4578a028a9a9e16665d51981f07ad
tree95c964b4758b4edbd1d4f50463a646bf27a494c3
parent1453fb3e72c5721c4480f409ae9ca2c4db5f8b87
Fix terminated event

Issue:
When application is finished, VSCode still hangs like it is debugging the
process. That happens because VSCode doesn't emit Disconnect when Exit
message is received and Terminated is never sent.

Now it is sent:
- on Disconnect when application is supposed to be detached;
- on application finish, together with exit event.

Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
src/debug/netcoredbg/manageddebugger.cpp