Fix serious regression which broke evaluation of back traces.
authorMilian Wolff <mail@milianw.de>
Thu, 23 Jul 2015 14:50:49 +0000 (16:50 +0200)
committerMilian Wolff <mail@milianw.de>
Thu, 23 Jul 2015 14:50:49 +0000 (16:50 +0200)
The data format expects hexadecimal numbers, thus output one.
Regression was introduced when I hacked in the 32bit support.

tracetree.h

index 5b697ba..61fbc0f 100644 (file)
@@ -76,7 +76,7 @@ public:
             if (it == parent->children.end() || it->instructionPointer != ip) {
                 index = m_index++;
                 it = parent->children.insert(it, {ip, index, {}});
-                fprintf(out, "t %" PRIxPTR " %zu\n", reinterpret_cast<uintptr_t>(ip), parent->index);
+                fprintf(out, "t %" PRIxPTR " %zx\n", reinterpret_cast<uintptr_t>(ip), parent->index);
             }
             index = it->index;
             parent = &(*it);