| 785 | } |
| 786 | |
| 787 | void DebuggerTestBase::testBreakOnAccessBreakpoint() |
| 788 | { |
| 789 | if (isLldb()) { |
| 790 | QSKIP("Skipping... LLDB-MI does not have proper watchpoint support"); |
| 791 | } |
| 792 | auto* const session = createTestDebugSession(); |
| 793 | TestLaunchConfiguration cfg; |
| 794 | |
| 795 | addDebugeeBreakpoint(25); |
| 796 | ActiveStateSessionSpy sessionSpy(session); |
| 797 | START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy); |
| 798 | QCOMPARE(currentMiLine(session), 25); |
| 799 | |
| 800 | breakpoints()->addAccessWatchpoint("i"); |
| 801 | |
| 802 | CONTINUE_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy); |
| 803 | QCOMPARE(currentMiLine(session), 23); // ++i (read) |
| 804 | |
| 805 | CONTINUE_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy); |
| 806 | QCOMPARE(currentMiLine(session), 23); // ++i (write) |
| 807 | |
| 808 | CONTINUE_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy); |
| 809 | QCOMPARE(currentMiLine(session), 23); // int j = i (read) |
| 810 | |
| 811 | CONTINUE_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy); |
| 812 | QCOMPARE(currentMiLine(session), 25); |
| 813 | |
| 814 | session->run(); |
| 815 | WAIT_FOR_STATE(session, IDebugSession::EndedState); |
| 816 | } |
| 817 | |
| 818 | void DebuggerTestBase::testBreakpointErrors() |
| 819 | { |
nothing calls this directly
no test coverage detected