forked from qt-creator/qt-creator
CDB: Pass referenced address in separate GDBMI field.
Use 'origaddr' as gdb does. Do not append address to watch value if it is already contained in the value. Fixes the currently grayed-out 'Open memory editor at referenced address'. Change-Id: I6f7cf5b7984f93606ad4bb0872348f51c73f9117 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -955,9 +955,14 @@ QString WatchModel::display(const WatchItem *item, int col) const
|
||||
case 1:
|
||||
result = removeInitialNamespace(
|
||||
truncateValue(formattedValue(*item)));
|
||||
// Append referencing address unless the value contains it.
|
||||
if (item->referencingAddress) {
|
||||
result += QLatin1String(" @");
|
||||
result += QString::fromLatin1(item->hexReferencingAddress());
|
||||
if (result.startsWith(QLatin1String("0x"))) {
|
||||
result.prepend(QLatin1Char('@'));
|
||||
} else {
|
||||
result += QLatin1String(" @");
|
||||
result += QString::fromLatin1(item->hexReferencingAddress());
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user