summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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 << "]";