Add exec-abort command
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Wed, 23 Aug 2017 19:22:52 +0000 (22:22 +0300)
committerIgor Kulaychuk <i.kulaychuk@samsung.com>
Mon, 13 Nov 2017 19:22:40 +0000 (22:22 +0300)
src/debug/netcoredbg/commands.cpp

index 8749796..9615fae 100644 (file)
@@ -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> &, std::string &output) -> HRESULT {
+        this->TerminateProcess();
+        return S_OK;
+    }},
     { "target-attach", [this](ICorDebugProcess *, const std::vector<std::string> &args, std::string &output) -> HRESULT {
         HRESULT Status;
         if (args.size() != 1)