Commit 58cbf845 authored by hjk's avatar hjk
Browse files

debugger: add address of pointees of generic pointers

parent b0cc9fa4
......@@ -1329,8 +1329,10 @@ class Dumper:
self.putNumChild(1)
if self.isExpanded(item):
with Children(self):
self.putItem(
Item(item.value.dereference(), item.iname, "*", "*"))
with SubItem(self):
self.putItemHelper(Item(item.value.dereference(),
item.iname, "*", "*"))
self.putAddress(item.value)
self.putPointerValue(value.address)
elif str(type).startswith("<anon"):
......
......@@ -248,7 +248,7 @@ void testPeekAndPoke3()
struct { int i; int b; };
struct { float f; };
double d;
} a = { 42, 43 };
} a = { { 42, 43 } };
a.i = 1; // Break here. Expand a. Step.
a.i = 2; // Change a.i in Locals view to 0. This changes f, d but expectedly not b. Step.
a.i = 3; // Continue.
......@@ -1550,6 +1550,7 @@ void testQHash1()
void testPointer()
{
Foo *f = new Foo();
Q_UNUSED(f);
int i = 0;
++i;
++i;
......@@ -1635,10 +1636,17 @@ int fooii()
return 3;
}
void testStuff()
{
int i = 0;
int *p = &i;
++*p;
}
int main(int argc, char *argv[])
{
testColor();
testStuff();
testPeekAndPoke3();
testFunctionPointer();
testAnonymous();
......@@ -1687,8 +1695,8 @@ int main(int argc, char *argv[])
testPlugin();
testQList();
testQLinkedList();
char *s = "aöa";
wchar_t *w = L"aöa";
const char *s = "aöa";
const wchar_t *w = L"aöa";
testNamespace();
//return 0;
testQHash();
......
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