Changeset View
Changeset View
Standalone View
Standalone View
src/drkonqibackends.cpp
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Line(s) | |||||
167 | #elif !defined(Q_OS_WIN) | 167 | #elif !defined(Q_OS_WIN) | ||
168 | QString defaultDebuggerName = config.readEntry("Debugger", QStringLiteral("gdb")); | 168 | QString defaultDebuggerName = config.readEntry("Debugger", QStringLiteral("gdb")); | ||
169 | #else | 169 | #else | ||
170 | QString defaultDebuggerName = config.readEntry("Debugger", QStringLiteral("cdb")); | 170 | QString defaultDebuggerName = config.readEntry("Debugger", QStringLiteral("cdb")); | ||
171 | #endif | 171 | #endif | ||
172 | 172 | | |||
173 | Debugger firstKnownGoodDebugger, preferredDebugger; | 173 | Debugger firstKnownGoodDebugger, preferredDebugger; | ||
174 | foreach (const Debugger & debugger, internalDebuggers) { | 174 | foreach (const Debugger & debugger, internalDebuggers) { | ||
175 | qCDebug(DRKONQI_LOG) << "Check debugger if" << debugger.name() << "is installed:" << debugger.isInstalled(); | ||||
175 | if (!firstKnownGoodDebugger.isValid() && debugger.isInstalled()) { | 176 | if (!firstKnownGoodDebugger.isValid() && debugger.isInstalled()) { | ||
176 | firstKnownGoodDebugger = debugger; | 177 | firstKnownGoodDebugger = debugger; | ||
177 | } | 178 | } | ||
178 | if (debugger.codeName() == defaultDebuggerName) { | 179 | if (debugger.codeName() == defaultDebuggerName) { | ||
179 | preferredDebugger = debugger; | 180 | preferredDebugger = debugger; | ||
180 | } | 181 | } | ||
181 | if (firstKnownGoodDebugger.isValid() && preferredDebugger.isValid()) { | 182 | if (firstKnownGoodDebugger.isValid() && preferredDebugger.isValid()) { | ||
182 | break; | 183 | break; | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
230 | //static | 231 | //static | ||
231 | void KCrashBackend::emergencySaveFunction(int signal) | 232 | void KCrashBackend::emergencySaveFunction(int signal) | ||
232 | { | 233 | { | ||
233 | // In case drkonqi itself crashes, we need to get rid of the process being debugged, | 234 | // In case drkonqi itself crashes, we need to get rid of the process being debugged, | ||
234 | // so we kill it, no matter what its state was. | 235 | // so we kill it, no matter what its state was. | ||
235 | Q_UNUSED(signal); | 236 | Q_UNUSED(signal); | ||
236 | ::kill(s_pid, SIGKILL); | 237 | ::kill(s_pid, SIGKILL); | ||
237 | } | 238 | } | ||
238 | | ||||
239 | |