forked from qt-creator/qt-creator
debugger: disable 'continue' as woraround for failing 'step'
This commit is contained in:
@@ -3631,6 +3631,10 @@ void GdbEngine::updateLocals(const QVariant &cookie)
|
|||||||
expanded.chop(1);
|
expanded.chop(1);
|
||||||
|
|
||||||
QByteArray watchers;
|
QByteArray watchers;
|
||||||
|
if (!m_toolTipExpression.isEmpty())
|
||||||
|
watchers += m_toolTipExpression.toLatin1()
|
||||||
|
+ "#" + tooltipINameForExpression(m_toolTipExpression.toLatin1());
|
||||||
|
|
||||||
QHash<QByteArray, int> watcherNames = handler->watcherNames();
|
QHash<QByteArray, int> watcherNames = handler->watcherNames();
|
||||||
QHashIterator<QByteArray, int> it(watcherNames);
|
QHashIterator<QByteArray, int> it(watcherNames);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
@@ -3642,9 +3646,6 @@ void GdbEngine::updateLocals(const QVariant &cookie)
|
|||||||
else
|
else
|
||||||
watchers += it.key() + "#watch." + QByteArray::number(it.value());
|
watchers += it.key() + "#watch." + QByteArray::number(it.value());
|
||||||
}
|
}
|
||||||
if (!m_toolTipExpression.isEmpty())
|
|
||||||
watchers += "##" + m_toolTipExpression.toLatin1()
|
|
||||||
+ "#" + tooltipINameForExpression(m_toolTipExpression.toLatin1());
|
|
||||||
|
|
||||||
QByteArray options;
|
QByteArray options;
|
||||||
if (theDebuggerBoolSetting(UseDebuggingHelpers))
|
if (theDebuggerBoolSetting(UseDebuggingHelpers))
|
||||||
|
|||||||
@@ -451,6 +451,7 @@ void TrkGdbAdapter::readGdbServerCommand()
|
|||||||
|
|
||||||
if (code == '-') {
|
if (code == '-') {
|
||||||
logMessage("NAK: Retransmission requested");
|
logMessage("NAK: Retransmission requested");
|
||||||
|
emit adapterCrashed("Communication problem encountered.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1459,9 +1460,15 @@ void TrkGdbAdapter::handleStepInto(const TrkResult &result)
|
|||||||
m_snapshot.reset();
|
m_snapshot.reset();
|
||||||
if (result.errorCode()) {
|
if (result.errorCode()) {
|
||||||
logMessage("ERROR: " + result.errorString() + " in handleStepInto");
|
logMessage("ERROR: " + result.errorString() + " in handleStepInto");
|
||||||
|
#if 0
|
||||||
// Try fallback with Step Over
|
// Try fallback with Step Over
|
||||||
QByteArray ba = trkStepRangeMessage(0x11); // options "step over"
|
QByteArray ba = trkStepRangeMessage(0x11); // options "step over"
|
||||||
sendTrkMessage(0x19, TrkCB(handleStepInto2), ba, "Step range");
|
sendTrkMessage(0x19, TrkCB(handleStepInto2), ba, "Step range");
|
||||||
|
#else
|
||||||
|
sendTrkMessage(0x12,
|
||||||
|
TrkCB(handleAndReportReadRegistersAfterStop),
|
||||||
|
trkReadRegistersMessage());
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// The gdb server response is triggered later by the Stop Reply packet
|
// The gdb server response is triggered later by the Stop Reply packet
|
||||||
@@ -1472,9 +1479,15 @@ void TrkGdbAdapter::handleStepInto2(const TrkResult &result)
|
|||||||
{
|
{
|
||||||
if (result.errorCode()) {
|
if (result.errorCode()) {
|
||||||
logMessage("ERROR: " + result.errorString() + " in handleStepInto2");
|
logMessage("ERROR: " + result.errorString() + " in handleStepInto2");
|
||||||
|
#if 0
|
||||||
// Try fallback with Continue
|
// Try fallback with Continue
|
||||||
sendTrkMessage(0x18, TrkCallback(), trkContinueMessage(), "CONTINUE");
|
sendTrkMessage(0x18, TrkCallback(), trkContinueMessage(), "CONTINUE");
|
||||||
//sendGdbServerMessage("S05", "Stepping finished");
|
//sendGdbServerMessage("S05", "Stepping finished");
|
||||||
|
#else
|
||||||
|
sendTrkMessage(0x12,
|
||||||
|
TrkCB(handleAndReportReadRegistersAfterStop),
|
||||||
|
trkReadRegistersMessage());
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
logMessage("STEP INTO FINISHED (FALLBACK)");
|
logMessage("STEP INTO FINISHED (FALLBACK)");
|
||||||
|
|||||||
Reference in New Issue
Block a user