Commit 3d7a1458 authored by hjk's avatar hjk
Browse files

debugger: add address display for floats and bools

parent b51e17c5
......@@ -1498,6 +1498,7 @@ class Dumper:
with SubItem(self):
self.putName(name)
self.putValue(value)
self.putAddress(value.address)
self.putType("int")
self.putNumChild(0)
......@@ -1505,6 +1506,7 @@ class Dumper:
with SubItem(self):
self.putName(name)
self.putValue(value)
self.putAddress(value.address)
self.putType("bool")
self.putNumChild(0)
......@@ -1614,6 +1616,14 @@ class Dumper:
self.putNumChild(0)
return
if type.code == gdb.TYPE_CODE_FLT \
or type.code == gdb.TYPE_CODE_BOOL:
self.putType(realtype)
self.putValue(value)
self.putAddress(value.address)
self.putNumChild(0)
return
if value.type.code == gdb.TYPE_CODE_ARRAY:
self.putType(realtype)
self.putAddress(value.address)
......
......@@ -147,6 +147,7 @@ public:
int m_extraX;
QStringList m_extraY;
uint m_extraZ : 1;
bool m_extraB;
};
class DerivedObject : public QObject
......@@ -215,6 +216,10 @@ struct S
{
uint x : 1;
uint y : 1;
bool b;
float f;
double d;
int i;
};
void testPrivate()
......
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