Debugger: Fix compile warning

Change-Id: I77399e4f8260a043dbc429649fe33513d19fc91a
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-06-07 09:28:54 +02:00
parent adcf52e0c4
commit a3fb6a3a1c

View File

@@ -1123,7 +1123,7 @@ void GdbEngine::handleStopResponse(const GdbMi &data)
const GdbMi frame = data["frame"]; const GdbMi frame = data["frame"];
// Jump over well-known frames. // Jump over well-known frames.
static int stepCounter = 0; //static int stepCounter = 0;
if (debuggerSettings()->skipKnownFrames.value()) { if (debuggerSettings()->skipKnownFrames.value()) {
if (reason == "end-stepping-range" || reason == "function-finished") { if (reason == "end-stepping-range" || reason == "function-finished") {
//showMessage(frame.toString()); //showMessage(frame.toString());
@@ -1131,19 +1131,19 @@ void GdbEngine::handleStopResponse(const GdbMi &data)
QString fileName = frame["file"].data(); QString fileName = frame["file"].data();
if (isLeavableFunction(funcName, fileName)) { if (isLeavableFunction(funcName, fileName)) {
//showMessage(_("LEAVING ") + funcName); //showMessage(_("LEAVING ") + funcName);
++stepCounter; //++stepCounter;
executeStepOut(); executeStepOut();
return; return;
} }
if (isSkippableFunction(funcName, fileName)) { if (isSkippableFunction(funcName, fileName)) {
//showMessage(_("SKIPPING ") + funcName); //showMessage(_("SKIPPING ") + funcName);
++stepCounter; //++stepCounter;
executeStepIn(false); executeStepIn(false);
return; return;
} }
//if (stepCounter) //if (stepCounter)
// qDebug() << "STEPCOUNTER:" << stepCounter; // qDebug() << "STEPCOUNTER:" << stepCounter;
stepCounter = 0; //stepCounter = 0;
} }
} }