aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2008-12-08 10:25:39 +0100
committerhjk <qtc-committer@nokia.com>2008-12-08 10:25:39 +0100
commit44cc9a2b400a4c695d9f21cce9cebee0d571318a (patch)
tree48c21da95d883be66a1235f80f78ec547842b156 /bin
parent9bfb54f59a325bd3fb6fdbaca85a3a342e0b1ef8 (diff)
fix expansion state of "dummy" items in locals&watchers after frame changes
Diffstat (limited to 'bin')
-rw-r--r--bin/gdbmacros/gdbmacros.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/gdbmacros/gdbmacros.cpp b/bin/gdbmacros/gdbmacros.cpp
index 05488a8512..199b783f45 100644
--- a/bin/gdbmacros/gdbmacros.cpp
+++ b/bin/gdbmacros/gdbmacros.cpp
@@ -1864,7 +1864,7 @@ static void qDumpQSet(QDumper &d)
n = 100;
d << ",children=[";
int i = 0;
- for (int bucket = 0; bucket != hd->numBuckets; ++bucket) {
+ for (int bucket = 0; bucket != hd->numBuckets && i <= 10000; ++bucket) {
for (node = hd->buckets[bucket]; node->next; node = node->next) {
d.beginHash();
P(d, "name", "[" << i << "]");
@@ -1875,6 +1875,14 @@ static void qDumpQSet(QDumper &d)
);
d.endHash();
++i;
+ if (i > 10000) {
+ d.beginHash();
+ P(d, "name", "Warning:");
+ P(d, "value", "<incomplete>");
+ P(d, "type", "");
+ d.endHash();
+ break;
+ }
}
}
d << "]";