MCPcopy Create free account
hub / github.com/KDE/kdevelop / testBreakpointDisabledOnStart

Method testBreakpointDisabledOnStart

plugins/gdb/unittests/test_gdb.cpp:428–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428void GdbTest::testBreakpointDisabledOnStart()
429{
430 auto *session = new TestDebugSession;
431
432 TestLaunchConfiguration cfg;
433
434 breakpoints()->addCodeBreakpoint(debugeeUrl(), 28)->setData(KDevelop::Breakpoint::EnableColumn, Qt::Unchecked);
435 breakpoints()->addCodeBreakpoint(debugeeUrl(), 29);
436 auto* const b = breakpoints()->addCodeBreakpoint(debugeeUrl(), 31);
437 b->setData(KDevelop::Breakpoint::EnableColumn, Qt::Unchecked);
438
439 START_DEBUGGING_E(session, cfg);
440 WAIT_FOR_STATE_AND_IDLE(session, DebugSession::PausedState);
441 QCOMPARE(session->line(), 29);
442 b->setData(KDevelop::Breakpoint::EnableColumn, Qt::Checked);
443 session->run();
444 WAIT_FOR_STATE(session, DebugSession::PausedState);
445 QCOMPARE(session->line(), 31);
446 session->run();
447 WAIT_FOR_STATE(session, DebugSession::EndedState);
448}
449
450void GdbTest::parseBug304730()
451{

Callers

nothing calls this directly

Calls 4

setDataMethod · 0.45
addCodeBreakpointMethod · 0.45
lineMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected