Home
last modified time | relevance | path

Searched full:breakpoint (Results 1 – 25 of 49) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/debugger/
Djs_debugger_interface.h53 … * \brief called by the ecmavm when breakpoint hits. Thread where breakpoint hits is stopped until
55 …* @param thread Identifier of the thread where breakpoint hits. Now the callback is called in the …
57 * @param location Breakpoint location
59 virtual void Breakpoint(const JSPtLocation &location) = 0;
110 * \brief Set breakpoint to \param location with an optional \param condition
111 * @param location Breakpoint location
118 * \brief Remove breakpoint from \param location
119 * @param location Breakpoint location
126 * @param location Breakpoint location
Djs_debugger.h59 std::stringstream breakpoint; in ToString() local
60 breakpoint << "["; in ToString()
61 breakpoint << "methodId:" << ptMethod_->GetMethodId() << ", "; in ToString()
62 breakpoint << "bytecodeOffset:" << bcOffset_ << ", "; in ToString()
63 breakpoint << "sourceFile:" << "\""<< sourceFile_ << "\""<< ", "; in ToString()
64breakpoint << "jsPandaFile:" << "\"" << ptMethod_->GetJSPandaFile()->GetJSPandaFileDesc() << "\""; in ToString()
65 breakpoint << "]"; in ToString()
66 return breakpoint.str(); in ToString()
Djs_debugger.cpp37 LOG_DEBUGGER(ERROR) << "SetBreakpoint: Invalid breakpoint location"; in SetBreakpoint()
45 LOG_DEBUGGER(WARN) << "SetBreakpoint: Breakpoint already exists"; in SetBreakpoint()
61 LOG_DEBUGGER(ERROR) << "RemoveBreakpoint: Breakpoint not found"; in RemoveBreakpoint()
79 // Step event is reported before breakpoint, according to the spec. in BytecodePcChanged()
87 auto breakpoint = FindBreakpoint(method, bcOffset); in HandleBreakpoint() local
88 if (hooks_ == nullptr || !breakpoint.has_value()) { in HandleBreakpoint()
93 auto condFuncRef = breakpoint.value().GetConditionFunction(); in HandleBreakpoint()
112 breakpoint.value().GetSourceFile()}; in HandleBreakpoint()
114 hooks_->Breakpoint(location); in HandleBreakpoint()
/arkcompiler/runtime_core/runtime/tooling/inspector/tests/
Dbreakpoint_test.cpp87 template <size_t... Breakpoint>
90 std::index_sequence<Breakpoint...> /* breakpoints */);
99 template <size_t... Breakpoint>
102 std::index_sequence<Breakpoint...> /* breakpoints */) in CheckPossibleBreakpoints() argument
126 … JsonProperty<JsonObject::NumT> {"lineNumber", Breakpoint}))}...)}); in CheckPossibleBreakpoints()
141 // When stopped at a breakpoint while doing a step and resumed,
160 Breakpoint(CallFrame(func_, 2), CallFrame(main_.GetMethod(), 8)), in TEST_F()
161 Breakpoint(CallFrame(main_.GetMethod(), 9)), in TEST_F()
162 Breakpoint(CallFrame(func_, 2), CallFrame(main_.GetMethod(), 9)), in TEST_F()
188 Breakpoint(CallFrame(func_, 2), CallFrame(main_.GetMethod(), 8)), in TEST_F()
[all …]
Dtest_debugger.cpp63 hooks_->Breakpoint(PtThread::NONE, callStack_.Front().GetMethod(), location); in HandleBreakpoint()
69 return Error(Error::Type::BREAKPOINT_ALREADY_EXISTS, "Breakpoint already exists"); in SetBreakpoint()
78 return Error(Error::Type::BREAKPOINT_NOT_FOUND, "Breakpoint not found"); in RemoveBreakpoint()
Dexpect_pauses.h52 Pause Breakpoint(CallFrame &&... callFrame) in Breakpoint() function
54 return {"Breakpoint", {std::forward<CallFrame>(callFrame)...}}; in Breakpoint()
/arkcompiler/toolchain/tooling/test/testcases/
Djs_step_into_test.h33 // line number for breakpoint array in JsStepIntoTest()
34 size_t breakpoint[POINTER_SIZE][LINE_COLUMN] = in JsStepIntoTest() local
39 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepIntoTest()
52 breakpoint = [this](const JSPtLocation &location) { in JsStepIntoTest()
56 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepIntoTest()
Djs_step_over_test.h33 // 24、27: line number for breakpoint array in JsStepOverTest()
34 …size_t breakpoint[8][2] = {{24, 0}, {27, 0}, {36, 0}, {50, 0}, {60, 0}, {90, 0}, {96, 0}, {54, 0}}; in JsStepOverTest() local
37 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepOverTest()
50 breakpoint = [this](const JSPtLocation &location) { in JsStepOverTest()
54 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepOverTest()
Djs_step_out_test.h33 // 74、36: line number for breakpoint array in JsStepOutTest()
34 size_t breakpoint[5][2] = {{74, 0}, {36, 0}, {50, 0}, {61, 0}, {96, 0}}; in JsStepOutTest() local
37 SetJSPtLocation(breakpoint[0], POINTER_SIZE, pointerLocations_); in JsStepOutTest()
50 breakpoint = [this](const JSPtLocation &location) { in JsStepOutTest()
54 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsStepOutTest()
Djs_syntax_exception_test.h26 breakpoint = [this](const JSPtLocation &location) { in JsSyntaxExceptionTest()
35 ASSERT_EQ(jsLocation->GetLine(), 27); // 27: breakpoint line in JsSyntaxExceptionTest()
36 ASSERT_EQ(jsLocation->GetColumn(), 0); // 0: breakpoint column in JsSyntaxExceptionTest()
37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsSyntaxExceptionTest()
Djs_exception_test.h26 breakpoint = [this](const JSPtLocation &location) { in JsExceptionTest()
35 ASSERT_EQ(jsLocation->GetLine(), 22); // 22: breakpoint line in JsExceptionTest()
36 ASSERT_EQ(jsLocation->GetColumn(), 0); // 0: breakpoint column in JsExceptionTest()
37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsExceptionTest()
Djs_range_error_test.h26 breakpoint = [this](const JSPtLocation &location) { in JsRangeErrorTest()
35 ASSERT_EQ(jsLocation->GetLine(), 20); // 22: breakpoint line in JsRangeErrorTest()
36 ASSERT_EQ(jsLocation->GetColumn(), 0); // 0: breakpoint column in JsRangeErrorTest()
37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsRangeErrorTest()
Djs_throw_exception_test.h26 breakpoint = [this](const JSPtLocation &location) { in JsThrowExceptionTest()
35 ASSERT_EQ(jsLocation->GetLine(), 28); // 28: breakpoint line in JsThrowExceptionTest()
36 ASSERT_EQ(jsLocation->GetColumn(), 0); // 0: breakpoint column in JsThrowExceptionTest()
37 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsThrowExceptionTest()
Djs_breakpoint_arrow_test.h26 breakpoint = [this](const JSPtLocation &location) { in JsBreakpointArrowTest()
30 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsBreakpointArrowTest()
Djs_breakpoint_async_test.h26 breakpoint = [this](const JSPtLocation &location) { in JsBreakpointAsyncTest()
30 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsBreakpointAsyncTest()
Djs_breakpoint_test.h26 breakpoint = [this](const JSPtLocation &location) { in JsBreakpointTest()
30 TestUtil::SuspendUntilContinue(DebugEvent::BREAKPOINT, location); in JsBreakpointTest()
/arkcompiler/runtime_core/verification/config/debug_breakpoint/
Dconfig_handler_breakpoints.cpp49 struct Breakpoint; in BreakpointParser()
51 using p = parser<Context, const char, const char *>::next<Breakpoint>; in BreakpointParser()
88 …static const auto BREAKPOINT = ~WS >> METHOD_NAME >> *(~WS >> COMMA >> ~WS >> OFFSET) >> ~WS >> p:… in BreakpointParser() local
90 return BREAKPOINT; in BreakpointParser()
Dbreakpoint.cpp59 …ManagedBreakpoints.Breakpoint.Apply([&](auto &breakpoint_map) { breakpoint_map[id].insert(offset);… in InsertBreakpoints()
66 const auto &breakpoints = DebugContext::GetCurrent().ManagedBreakpoints.Breakpoint; in CheckManagedBreakpoint()
78 return DebugContext::GetCurrent().ManagedBreakpoints.Breakpoint->count(id) > 0; in ManagedBreakpointPresent()
/arkcompiler/toolchain/tooling/test/utils/
Dtest_hooks.h47 void Breakpoint(const JSPtLocation &location) override in Breakpoint() function
49 if (test_->breakpoint) { in Breakpoint()
50 test_->breakpoint(location); in Breakpoint()
Dtest_events.h33 BREAKPOINT, enumerator
49 BreakpointCallback breakpoint; member
/arkcompiler/runtime_core/runtime/include/tooling/
Ddebug_interface.h221 …* \brief Method is called by the runtime when breakpoint hits. Thread where breakpoint hits is sto…
223 …* @param thread Identifier of the thread where breakpoint hits. Now the callback is called in the …
226 * @param location Breakpoint location
228 …virtual void Breakpoint(PtThread /* thread */, Method * /* method */, const PtLocation & /* locati… in Breakpoint() function
356 virtual void Breakpoint(PtThread /* thread */, const PtLocation & /* location */) {} in Breakpoint() function
451 * \brief Set breakpoint to \param location
452 * @param location Breakpoint location
458 * \brief Remove breakpoint from \param location
459 * @param location Breakpoint location
/arkcompiler/runtime_core/runtime/tooling/
Ddebugger.h42 class Breakpoint {
45 Breakpoint(Method *method, uint32_t bcOffset) : method_(method), bc_offset_(bcOffset) {} in Breakpoint() function
46 ~Breakpoint() = default;
58 bool operator==(const Breakpoint &bpoint) const
63 DEFAULT_COPY_SEMANTIC(Breakpoint);
64 DEFAULT_MOVE_SEMANTIC(Breakpoint);
74 size_t operator()(const Breakpoint &bpoint) const in operator()
/arkcompiler/runtime_core/verification/config/context/
Dcontext.h20 #include "verification/config/debug_breakpoint/breakpoint.h"
46 Synchronized<PandaUnorderedMap<Method::UniqId, PandaUnorderedSet<uint32_t>>> Breakpoint; member
/arkcompiler/toolchain/tooling/backend/
Djs_pt_hooks.cpp21 void JSPtHooks::Breakpoint(const JSPtLocation &location) in Breakpoint() function in panda::ecmascript::tooling::JSPtHooks
23 LOG_DEBUGGER(VERBOSE) << "JSPtHooks: Breakpoint => " << location.GetMethodId() << ": " in Breakpoint()
/arkcompiler/runtime_core/runtime/tooling/inspector/
Dinspector_hooks.h46 void Breakpoint(PtThread thread, Method *method, const PtLocation &location) override in Breakpoint() function
48 … RunHooks<PtThread, Method *, const PtLocation &>(&PtHooks::Breakpoint, thread, method, location); in Breakpoint()

12