forked from qt-creator/qt-creator
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:
@@ -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 *";
|
||||
|
||||
Reference in New Issue
Block a user