X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_dump.cpp;h=d9dcf1197737a7d1a2033fc463d0b20edfc27842;hb=96851e094e4e9f07cd3c95c924f86dc94dfd9dfd;hp=0f7ee3656e76288ccd12caca37ec5e62394ce76b;hpb=b16a4a88f021ec70cae2fc6278c2bd25224681a8;p=apitrace diff --git a/common/trace_dump.cpp b/common/trace_dump.cpp index 0f7ee36..d9dcf11 100644 --- a/common/trace_dump.cpp +++ b/common/trace_dump.cpp @@ -73,7 +73,7 @@ public: } void visit(Null *) { - os << "NULL"; + os << literal << "NULL" << normal; } void visit(Bool *node) { @@ -142,6 +142,7 @@ public: const BitmaskSig *sig = bitmask->sig; bool first = true; for (const BitmaskFlag *it = sig->flags; it != sig->flags + sig->num_flags; ++it) { + assert(it->value || first); if ((it->value && (value & it->value) == it->value) || (!it->value && value == 0)) { if (!first) { @@ -199,6 +200,10 @@ public: os << pointer << "0x" << std::hex << p->value << std::dec << normal; } + void visit(Repr *r) { + _visit(r->humanValue); + } + void visit(Call *call) { CallFlags callFlags = call->flags;