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