| 243 | } |
| 244 | |
| 245 | void LldbTest::testRemoteDebugging() |
| 246 | { |
| 247 | KProcess gdbServer; |
| 248 | gdbServer << QStringLiteral("lldb-server") << QStringLiteral("gdbserver") << QStringLiteral("*:1234"); |
| 249 | gdbServer.start(); |
| 250 | QVERIFY(gdbServer.waitForStarted()); |
| 251 | |
| 252 | auto *session = new TestDebugSession; |
| 253 | TestLaunchConfiguration cfg; |
| 254 | |
| 255 | cfg.config().writeEntry(Config::LldbRemoteDebuggingEntry, true); |
| 256 | cfg.config().writeEntry(Config::LldbRemoteServerEntry, "localhost:1234"); |
| 257 | cfg.config().writeEntry(Config::LldbRemotePathEntry, "/tmp"); |
| 258 | |
| 259 | breakpoints()->addCodeBreakpoint(debugeeUrl(), 34); |
| 260 | ActiveStateSessionSpy sessionSpy(session); |
| 261 | START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy); |
| 262 | |
| 263 | session->run(); |
| 264 | WAIT_FOR_STATE(session, DebugSession::EndedState); |
| 265 | } |
| 266 | |
| 267 | void LldbTest::testVariablesLocals() |
| 268 | { |
nothing calls this directly
no test coverage detected