From afb95bba8a26c8d9f3fa7a4e27f6aae46dcacdb3 Mon Sep 17 00:00:00 2001 From: Igor Kulaychuk Date: Wed, 23 Aug 2017 22:22:52 +0300 Subject: [PATCH] Add exec-abort command --- src/debug/netcoredbg/commands.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug/netcoredbg/commands.cpp b/src/debug/netcoredbg/commands.cpp index 8749796..9615fae 100644 --- a/src/debug/netcoredbg/commands.cpp +++ b/src/debug/netcoredbg/commands.cpp @@ -259,6 +259,10 @@ HRESULT Debugger::HandleCommand(std::string command, { "exec-step", std::bind(StepCommand, _1, _2, _3, STEP_IN) }, { "exec-next", std::bind(StepCommand, _1, _2, _3, STEP_OVER) }, { "exec-finish", std::bind(StepCommand, _1, _2, _3, STEP_OUT) }, + { "exec-abort", [this](ICorDebugProcess *, const std::vector &, std::string &output) -> HRESULT { + this->TerminateProcess(); + return S_OK; + }}, { "target-attach", [this](ICorDebugProcess *, const std::vector &args, std::string &output) -> HRESULT { HRESULT Status; if (args.size() != 1) -- 2.7.4