debugger: show cdb vtable pointer in hex

Change-Id: I8deb537ce837e54315b0f0a64897363f70344137
Reviewed-by: Friedemann Kleint
Task-number: QTCREATORBUG-5381
Reviewed-on: http://codereview.qt.nokia.com/1405
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
hjk
2011-07-11 11:19:29 +02:00
committed by Friedemann Kleint
parent c4ba51ca36
commit 6e5908625f
6 changed files with 25 additions and 1 deletions

View File

@@ -68,6 +68,13 @@ bool isPointerType(const QByteArray &type)
return type.endsWith('*') || type.endsWith("* const");
}
bool isVTablePointer(const QByteArray &type)
{
// FIXME: That is cdb only.
// But no user type can be named like this, so this is safe.
return type.startsWith("__fptr()");
}
bool isCharPointerType(const QByteArray &type)
{
return type == "char *" || type == "const char *" || type == "char const *";