[CLI] Remove ^done message for every command execution
authorAlexander Soldatov <soldatov.a@samsung.com>
Mon, 18 Oct 2021 18:07:00 +0000 (21:07 +0300)
committerAlexander Soldatov/Platform Lab /SRR/Staff Engineer/Samsung Electronics <soldatov.a@samsung.com>
Tue, 19 Oct 2021 11:17:09 +0000 (14:17 +0300)
src/protocols/cliprotocol.cpp

index 74c6d1d9d287cf677ad2ef6097020bd76b4e7714..f8462b96cea93ca0ab499cd3fb825fd12a014b44 100644 (file)
@@ -1525,7 +1525,7 @@ HRESULT CLIProtocol::doCommand<CommandTag::Interrupt>(const std::vector<std::str
 
     HRESULT Status;
     IfFailRet(m_sharedDebugger->Pause());
-    output = "^done";
+    output = "^stopped";
     return S_OK;
 }
 
@@ -2341,15 +2341,7 @@ HRESULT CLIProtocol::execCommands(LineReader&& lr)
 
         if (SUCCEEDED(hr))
         {
-            const char *resultClass;
-            if (output.empty())
-                resultClass = "^done";
-            else if (output.at(0) == '^')
-                resultClass = "";
-            else
-                resultClass = "^done,";
-
-            printf("%.*s%s%s\n", int(prefix.size()), prefix.data(), resultClass, output.c_str());
+            printf("%.*s%s\n", int(prefix.size()), prefix.data(), output.c_str());
         }
         else
         {