summaryrefslogtreecommitdiff
path: root/share/qtcreator/gdbmacros/gdbmacros.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-08-28 14:34:08 +0200
committerhjk <qtc-committer@nokia.com>2009-08-28 14:34:56 +0200
commit75ade29466b0ac6d6ac345cd21e81266f4a1117b (patch)
tree25c8ce911d686e3a303664850454ac13ab8e49bf /share/qtcreator/gdbmacros/gdbmacros.cpp
parent62d7ea19adf2c8977da99cb73290abc07f5138a2 (diff)
downloadqt-creator-75ade29466b0ac6d6ac345cd21e81266f4a1117b.tar.gz
debugger: allow dumpers to return children in more than one nesting level
Diffstat (limited to 'share/qtcreator/gdbmacros/gdbmacros.cpp')
-rw-r--r--share/qtcreator/gdbmacros/gdbmacros.cpp28
1 files changed, 25 insertions, 3 deletions
diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp
index c464b9435a..e0a59d43c2 100644
--- a/share/qtcreator/gdbmacros/gdbmacros.cpp
+++ b/share/qtcreator/gdbmacros/gdbmacros.cpp
@@ -1309,6 +1309,7 @@ static void qDumpQFileInfo(QDumper &d)
if (d.dumpChildren) {
d.beginChildren();
d.putHash("absolutePath", info.absolutePath());
+#if 0
d.putHash("absoluteFilePath", info.absoluteFilePath());
d.putHash("canonicalPath", info.canonicalPath());
d.putHash("canonicalFilePath", info.canonicalFilePath());
@@ -1324,15 +1325,35 @@ static void qDumpQFileInfo(QDumper &d)
d.putHash("group", info.group());
d.putHash("owner", info.owner());
d.putHash("path", info.path());
+#endif
d.putHash("groupid", (long)info.groupId());
d.putHash("ownerid", (long)info.ownerId());
//QFile::Permissions permissions () const
- d.putHash("permissions", (long)info.permissions());
-
+ long perms = info.permissions();
+ d.beginHash();
+ d.putItem("name", "permissions");
+ d.putItem("value", " ");
+ d.putItem("type", NS"QFile::Permissions");
+ d.putItem("numchild", 10);
+ d.beginChildren();
+ d.putHash("ReadOwner", bool(perms & QFile::ReadOwner));
+ d.putHash("WriteOwner", bool(perms & QFile::WriteOwner));
+ d.putHash("ExeOwner", bool(perms & QFile::ExeOwner));
+ d.putHash("ReadUser", bool(perms & QFile::ReadUser));
+ d.putHash("WriteUser", bool(perms & QFile::WriteUser));
+ d.putHash("ExeUser", bool(perms & QFile::ExeUser));
+ d.putHash("ReadGroup", bool(perms & QFile::ReadGroup));
+ d.putHash("WriteGroup", bool(perms & QFile::WriteGroup));
+ d.putHash("ExeGroup", bool(perms & QFile::ExeGroup));
+ d.putHash("ReadOther", bool(perms & QFile::ReadOther));
+ d.putHash("WriteOther", bool(perms & QFile::WriteOther));
+ d.putHash("ExeOther", bool(perms & QFile::ExeOther));
+ d.endChildren();
+ d.endHash();
//QDir absoluteDir () const
//QDir dir () const
-
+#if 0
d.putHash("caching", info.caching());
d.putHash("exists", info.exists());
d.putHash("isAbsolute", info.isAbsolute());
@@ -1378,6 +1399,7 @@ static void qDumpQFileInfo(QDumper &d)
d.putItem("type", NS"QDateTime");
d.putItem("numchild", "1");
d.endHash();
+#endif
d.endChildren();
}