| 53 | } |
| 54 | |
| 55 | void ProbeCreator::createProbe() |
| 56 | { |
| 57 | if (!qApp) { |
| 58 | deleteLater(); |
| 59 | return; |
| 60 | } |
| 61 | |
| 62 | // make sure we are in the ui thread |
| 63 | Q_ASSERT(QThread::currentThread() == qApp->thread()); |
| 64 | |
| 65 | if (Probe::isInitialized()) { |
| 66 | // already exists, so we are trying to re-attach to an already injected process |
| 67 | if (m_flags & ResendServerAddress) { |
| 68 | printf("Resending server address...\n"); |
| 69 | Probe::instance()->resendServerAddress(); |
| 70 | } |
| 71 | deleteLater(); |
| 72 | return; |
| 73 | } |
| 74 | |
| 75 | Probe::createProbe(m_flags & FindExistingObjects); |
| 76 | Q_ASSERT(Probe::isInitialized()); |
| 77 | |
| 78 | deleteLater(); |
| 79 | } |
nothing calls this directly
no test coverage detected