Commit 5cc14426 authored by hjk's avatar hjk
Browse files

debugger: implement dumper for QBasicAtomicPointer

parent 9cb8fe01
...@@ -19,6 +19,18 @@ def qdump__QBasicAtomicInt(d, item): ...@@ -19,6 +19,18 @@ def qdump__QBasicAtomicInt(d, item):
d.putNumChild(0) d.putNumChild(0)
def qdump__QBasicAtomicPointer(d, item):
innerType = templateArgument(item.value.type.unqualified(), 0)
d.putType(item.value.type)
p = cleanAddress(item.value["_q_value"])
d.putValue(p)
d.putPointerValue(item.value.address)
d.putNumChild(p)
if d.isExpanded(item):
with Children(d):
d.putItem(item.value["_q_value"])
def qdump__QByteArray(d, item): def qdump__QByteArray(d, item):
d.putByteArrayValue(item.value) d.putByteArrayValue(item.value)
......
...@@ -867,7 +867,7 @@ public: ...@@ -867,7 +867,7 @@ public:
void testQObject(int &argc, char *argv[]) void testQObject(int &argc, char *argv[])
{ {
QApplication app(argc, argv); QApplication app(argc, argv);
QString longString = QString(10000, QLatin1Char('A')); //QString longString = QString(10000, QLatin1Char('A'));
#if 1 #if 1
Names::Bar::TestObject test; Names::Bar::TestObject test;
test.setMyProp1("HELLO"); test.setMyProp1("HELLO");
...@@ -887,7 +887,7 @@ void testQObject(int &argc, char *argv[]) ...@@ -887,7 +887,7 @@ void testQObject(int &argc, char *argv[])
t += "y"; t += "y";
#endif #endif
#if 0 #if 1
QWidget ob; QWidget ob;
ob.setObjectName("An Object"); ob.setObjectName("An Object");
ob.setProperty("USER DEFINED 1", 44); ob.setProperty("USER DEFINED 1", 44);
...@@ -895,6 +895,7 @@ void testQObject(int &argc, char *argv[]) ...@@ -895,6 +895,7 @@ void testQObject(int &argc, char *argv[])
QObject ob1; QObject ob1;
ob1.setObjectName("Another Object"); ob1.setObjectName("Another Object");
QObject::connect(&ob, SIGNAL(destroyed()), &ob1, SLOT(deleteLater()));
QObject::connect(&ob, SIGNAL(destroyed()), &ob1, SLOT(deleteLater())); QObject::connect(&ob, SIGNAL(destroyed()), &ob1, SLOT(deleteLater()));
//QObject::connect(&app, SIGNAL(lastWindowClosed()), &ob, SLOT(deleteLater())); //QObject::connect(&app, SIGNAL(lastWindowClosed()), &ob, SLOT(deleteLater()));
#endif #endif
......
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