forked from qt-creator/qt-creator
Debugger: Add some debug messages
Change-Id: Ib75954ec8d3e59f77cc501a7fb64344386fb3a0f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -512,6 +512,8 @@ PyObject *createType(ULONG64 module, ULONG typeId, const std::string &name)
|
|||||||
|
|
||||||
PyObject *createUnresolvedType(const std::string &name)
|
PyObject *createUnresolvedType(const std::string &name)
|
||||||
{
|
{
|
||||||
|
if (debuggingTypeEnabled())
|
||||||
|
DebugPrint() << "Created unresolved type '" << name << "'";
|
||||||
Type *type = PyObject_New(Type, type_pytype());
|
Type *type = PyObject_New(Type, type_pytype());
|
||||||
type->m_module = 0;
|
type->m_module = 0;
|
||||||
type->m_typeId = 0;
|
type->m_typeId = 0;
|
||||||
|
@@ -157,8 +157,12 @@ void indicesMoved(CIDebugSymbolGroup *symbolGroup, ULONG start, ULONG delta)
|
|||||||
if (count <= start)
|
if (count <= start)
|
||||||
return;
|
return;
|
||||||
for (Value *val : valuesForSymbolGroup[symbolGroup]) {
|
for (Value *val : valuesForSymbolGroup[symbolGroup]) {
|
||||||
if (val->m_index >= start && val->m_index + delta < count)
|
if (val->m_index >= start && val->m_index + delta < count) {
|
||||||
val->m_index += delta;
|
val->m_index += delta;
|
||||||
|
if (debuggingValueEnabled())
|
||||||
|
DebugPrint() << " Moved Index of " << getSymbolName(symbolGroup, val->m_index)
|
||||||
|
<< " delta " << delta << " to " << val->m_index;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,6 +178,8 @@ bool expandValue(Value *v)
|
|||||||
if (FAILED(v->m_symbolGroup->GetSymbolParameters(v->m_index, 1, ¶ms)))
|
if (FAILED(v->m_symbolGroup->GetSymbolParameters(v->m_index, 1, ¶ms)))
|
||||||
return false;
|
return false;
|
||||||
if (params.Flags & DEBUG_SYMBOL_EXPANDED) {
|
if (params.Flags & DEBUG_SYMBOL_EXPANDED) {
|
||||||
|
if (debuggingValueEnabled())
|
||||||
|
DebugPrint() << "Expanded " << getSymbolName(v->m_symbolGroup, v->m_index);
|
||||||
indicesMoved(v->m_symbolGroup, v->m_index + 1, params.SubElements);
|
indicesMoved(v->m_symbolGroup, v->m_index + 1, params.SubElements);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user