forked from qt-creator/qt-creator
Debugger: strip const before checking for __int64
Otherwise an "__int64 const" type isn't adjusted properly before the lookup Change-Id: I8e78a2273692bab164baa8ab80d921f841845b0d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -140,10 +140,10 @@ PyObject *lookupType(const std::string &typeNameIn)
|
||||
|
||||
if (typeName.find("enum ") == 0)
|
||||
typeName.erase(0, 5);
|
||||
if (typeName == "__int64" || typeName == "unsigned __int64")
|
||||
typeName.erase(typeName.find("__"), 2);
|
||||
if (endsWith(typeName, " const"))
|
||||
typeName.erase(typeName.length() - 6);
|
||||
if (typeName == "__int64" || typeName == "unsigned __int64")
|
||||
typeName.erase(typeName.find("__"), 2);
|
||||
|
||||
CIDebugSymbols *symbols = ExtensionCommandContext::instance()->symbols();
|
||||
ULONG64 module;
|
||||
|
Reference in New Issue
Block a user