Debugger: Add some debug messages

Change-Id: Ib75954ec8d3e59f77cc501a7fb64344386fb3a0f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2017-01-05 10:58:54 +01:00
parent ccd84c62be
commit 1da8ed2b25
2 changed files with 9 additions and 1 deletions

View File

@@ -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;

View File

@@ -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, &params))) if (FAILED(v->m_symbolGroup->GetSymbolParameters(v->m_index, 1, &params)))
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;
} }