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:
@@ -762,6 +762,14 @@ static void fixValue(const std::string &type, std::wstring *value)
|
||||
}
|
||||
}
|
||||
|
||||
// Strip a vtable "0x13f37b7c8 module!Class::`vftable'" to a plain pointer.
|
||||
if (SymbolGroupValue::isVTableType(type)) {
|
||||
const std::wstring::size_type blankPos = value->find(L' ', 2);
|
||||
if (blankPos != std::wstring::npos)
|
||||
value->erase(blankPos, value->size() - blankPos);
|
||||
return;
|
||||
}
|
||||
|
||||
// Pointers: fix '0x00000000`00000AD class bla' ... to "0xAD", but leave
|
||||
// 'const char *' values as is ('0x00000000`00000AD "hallo").
|
||||
if (!type.empty() && type.at(type.size() - 1) == L'*') {
|
||||
|
||||
Reference in New Issue
Block a user