debugger: show vtable ptr in hex, also with gdb

Task-number: QTCREATORBUG-6109
Change-Id: I9df2ddcd47e3551b23af20d2199b45fbee34bf9f
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-11-11 17:51:29 +01:00
committed by hjk
parent 5d810a65b3
commit 0e0b356bd7
4 changed files with 10 additions and 9 deletions

View File

@@ -68,13 +68,6 @@ 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 *";
@@ -165,6 +158,14 @@ bool WatchData::isEqual(const WatchData &other) const
&& error == other.error;
}
bool WatchData::isVTablePointer() const
{
// First case: Cdb only. No user type can be named like this, this is safe.
// Second case: Python dumper only.
return type.startsWith("__fptr()")
|| (type.isEmpty() && name == QLatin1String("[vptr]"));
}
void WatchData::setError(const QString &msg)
{
setAllUnneeded();