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:
David Schulz
2016-12-15 14:11:19 +01:00
parent 119222fb79
commit be7afaab27

View File

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