| 670 | } |
| 671 | |
| 672 | void DebuggerTestBase::testBreakOnWriteBreakpoint() |
| 673 | { |
| 674 | if (isLldb()) { |
| 675 | QSKIP("Skipping... LLDB-MI does not have proper watchpoint support"); |
| 676 | } |
| 677 | auto* const session = createTestDebugSession(); |
| 678 | TestLaunchConfiguration cfg; |
| 679 | |
| 680 | addDebugeeBreakpoint(25); |
| 681 | ActiveStateSessionSpy sessionSpy(session); |
| 682 | START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy); |
| 683 | QCOMPARE(currentMiLine(session), 25); |
| 684 | |
| 685 | breakpoints()->addWatchpoint("i"); |
| 686 | |
| 687 | CONTINUE_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy); |
| 688 | QCOMPARE(currentMiLine(session), 23); // ++i; int j = i; |
| 689 | |
| 690 | CONTINUE_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy); |
| 691 | QCOMPARE(currentMiLine(session), 25); |
| 692 | |
| 693 | session->run(); |
| 694 | WAIT_FOR_STATE(session, IDebugSession::EndedState); |
| 695 | } |
| 696 | |
| 697 | void DebuggerTestBase::testBreakOnWriteWithConditionBreakpoint() |
| 698 | { |
nothing calls this directly
no test coverage detected