forked from qt-creator/qt-creator
pdbengine: de-bitrot
Change-Id: I0a54370379d3b27824641c41c3499e4bd2056181 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -369,6 +369,8 @@ void PdbEngine::handleBreakInsert(const PdbResponse &response)
|
|||||||
br.fileName = _(file);
|
br.fileName = _(file);
|
||||||
br.lineNumber = line.toInt();
|
br.lineNumber = line.toInt();
|
||||||
handler->setResponse(id, br);
|
handler->setResponse(id, br);
|
||||||
|
QTC_CHECK(!handler->needsChange(id));
|
||||||
|
handler->notifyBreakpointInsertOk(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PdbEngine::removeBreakpoint(BreakpointModelId id)
|
void PdbEngine::removeBreakpoint(BreakpointModelId id)
|
||||||
@@ -717,6 +719,7 @@ void PdbEngine::updateAll()
|
|||||||
void PdbEngine::updateLocals()
|
void PdbEngine::updateLocals()
|
||||||
{
|
{
|
||||||
WatchHandler *handler = watchHandler();
|
WatchHandler *handler = watchHandler();
|
||||||
|
handler->beginCycle(true);
|
||||||
|
|
||||||
QByteArray watchers;
|
QByteArray watchers;
|
||||||
//if (!m_toolTipExpression.isEmpty())
|
//if (!m_toolTipExpression.isEmpty())
|
||||||
@@ -781,6 +784,7 @@ void PdbEngine::handleBacktrace(const PdbResponse &response)
|
|||||||
frame.file = _(fileName);
|
frame.file = _(fileName);
|
||||||
frame.line = lineNumber;
|
frame.line = lineNumber;
|
||||||
frame.function = _(line.mid(pos2 + 1));
|
frame.function = _(line.mid(pos2 + 1));
|
||||||
|
frame.usable = QFileInfo(frame.file).isReadable();
|
||||||
if (frame.line > 0 && QFileInfo(frame.file).exists()) {
|
if (frame.line > 0 && QFileInfo(frame.file).exists()) {
|
||||||
if (line.startsWith("> "))
|
if (line.startsWith("> "))
|
||||||
currentIndex = level;
|
currentIndex = level;
|
||||||
@@ -826,6 +830,7 @@ void PdbEngine::handleListLocals(const PdbResponse &response)
|
|||||||
parseWatchData(handler->expandedINames(), dummy, child, &list);
|
parseWatchData(handler->expandedINames(), dummy, child, &list);
|
||||||
}
|
}
|
||||||
handler->insertBulkData(list);
|
handler->insertBulkData(list);
|
||||||
|
handler->endCycle();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PdbEngine::hasCapability(unsigned cap) const
|
bool PdbEngine::hasCapability(unsigned cap) const
|
||||||
|
|||||||
Reference in New Issue
Block a user