diff --git a/inspector/inspector.cpp b/inspector/inspector.cpp index 2d843c7596f47d759ad28af1b734fb60856ca254..85038139cd8c8930377e3c067712dd4e0b0aa301 100644 --- a/inspector/inspector.cpp +++ b/inspector/inspector.cpp @@ -54,7 +54,6 @@ using OnMessage = void(*)(void*, std::string&&); using ProcessMessage = void(*)(void*); using GetDispatchStatus = int32_t(*)(void*); using GetCallFrames = char*(*)(void*); -using OperateDebugMessage = char*(*)(void*, const char*); OnMessage g_onMessage = nullptr; InitializeDebugger g_initializeDebugger = nullptr; @@ -63,7 +62,6 @@ WaitForDebugger g_waitForDebugger = nullptr; ProcessMessage g_processMessage = nullptr; GetDispatchStatus g_getDispatchStatus = nullptr; GetCallFrames g_getCallFrames = nullptr; -OperateDebugMessage g_operateDebugMessage = nullptr; std::atomic g_hasArkFuncsInited = false; std::unordered_map g_inspectors; @@ -266,12 +264,6 @@ bool InitializeArkFunctionsOthers() ResetServiceLocked(g_vm, true); return false; } - g_operateDebugMessage = reinterpret_cast( - GetArkDynFunction("OperateDebugMessage")); - if (g_operateDebugMessage == nullptr) { - ResetServiceLocked(g_vm, true); - return false; - } return true; } #else @@ -285,7 +277,6 @@ bool InitializeArkFunctionsIOS() g_getDispatchStatus = reinterpret_cast(&tooling::GetDispatchStatus); g_processMessage = reinterpret_cast(&tooling::ProcessMessage); g_getCallFrames = reinterpret_cast(&tooling::GetCallFrames); - g_operateDebugMessage = reinterpret_cast(&tooling::OperateDebugMessage); return true; } #endif @@ -523,9 +514,6 @@ void StopDebug(void* vm, bool isHybrid) g_handle = nullptr; } #endif - if (isHybrid) { - StopDebuggerForStatic(); - } LOGI("StopDebug end"); } @@ -570,18 +558,4 @@ const char* GetJsBacktrace() return ""; #endif } - -const char* OperateJsDebugMessage([[maybe_unused]] const char* message) -{ -#if defined(OHOS_PLATFORM) - void* vm = GetEcmaVM(Inspector::GetThreadOrTaskId()); - if (g_operateDebugMessage == nullptr) { - LOGE("OperateDebugMessage symbol resolve failed"); - return ""; - } - return g_operateDebugMessage(vm, message); -#else - return ""; -#endif -} } // namespace OHOS::ArkCompiler::Toolchain diff --git a/test/resource/tooling/ohos_test.xml b/test/resource/tooling/ohos_test.xml index 75795649746737a6c1572ac0181ace778cf04968..cad948a0293d09a7a1a021d0b7074d955ea6982f 100755 --- a/test/resource/tooling/ohos_test.xml +++ b/test/resource/tooling/ohos_test.xml @@ -38,6 +38,7 @@