Commit 3d39451b authored by hjk's avatar hjk Committed by hjk

debugger: show address of the target object when auto-dereferencing

Task-number: QTCREATORBUG-6813
Change-Id: Iaf1436a41cd22f46e8a8c369f942a3dba127cc6e
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent e8598fa3
......@@ -726,7 +726,7 @@ QString WatchModel::display(const WatchItem *item, int col) const
truncateValue(formattedValue(*item)));
if (item->referencingAddress) {
result += QLatin1String(" @");
result += QString::fromLatin1(item->hexAddress());
result += QString::fromLatin1(item->hexReferencingAddress());
}
break;
case 2:
......
......@@ -5478,6 +5478,20 @@ namespace bug5799 {
} // namespace bug5799
namespace bug6813 {
// https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6813
void test6813()
{
int foo = 0;
int *bar = &foo;
//std::cout << "&foo: " << &foo << "; bar: " << bar << "; &bar: " << &bar;
dummyStatement(&foo, &bar);
}
} // namespace bug6813
namespace qc41700 {
// http://www.qtcentre.org/threads/41700-How-to-watch-STL-containers-iterators-during-debugging
......@@ -5844,6 +5858,7 @@ int main(int argc, char *argv[])
bug5106::test5106();
bug5184::test5184();
bug5799::test5799();
bug6813::test6813();
bug6465::test6465();
gdb13393::test13393();
gdb10586::test10586();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment