diff --git a/toolkit/library/gecko.natvis b/toolkit/library/gecko.natvis new file mode 100644 index 000000000000..ff8d49db3ae0 --- /dev/null +++ b/toolkit/library/gecko.natvis @@ -0,0 +1,119 @@ + + + + + + + + empty + size = {mHdr->mLength} + size = {mHdr->mLength}, capacity = {mHdr->mCapacity} + + + mHdr->mLength + ($T1*)(mHdr + 1) + + + + + + + {mValue} + + + + + {mValue >> 2} + + {mValue & 1 != 0} + {mValue & 2 != 0} + + + + + {mValue.mValue._My_val} + + + + + + + + + NULL + {*($T1*)mRawPtr} + + ($T1*)mRawPtr + + + + + + + + + + {mData,s} + mData,s + + mLength + mFlags + + + + + + + + + {mData,su} + mData,su + + mLength + mFlags + + + + + + + x={x}, y={y}, width={width}, height={height} + + + + + + width={width}, height={height} + + + + + x={x}, y={y} + + + + + [Identity] + [Translate: ({_41}, {_42}, {_43})] + [Scale: ({_11}, {_22}, {_33})] + [4x4 Matrix] + + + [{_11}, {_12}, {_13}, {_14}] + [{_21}, {_22}, {_23}, {_24}] + [{_31}, {_32}, {_33}, {_34}] + [{_41}, {_42}, {_43}, {_44}] + + + + + + NULL + {*($T1*)ptr} + + ($T1*)ptr + + + + + diff --git a/toolkit/library/moz.build b/toolkit/library/moz.build index b0df6b98b91f..3034a32a41b9 100644 --- a/toolkit/library/moz.build +++ b/toolkit/library/moz.build @@ -77,6 +77,9 @@ def Libxul(name): if CONFIG['OS_ARCH'] == 'Darwin': LDFLAGS += ['-Wl,-no_compact_unwind,-lresolv'] + if CONFIG['MOZ_DEBUG_SYMBOLS'] and CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'): + LDFLAGS += ['-NATVIS:%s/toolkit/library/gecko.natvis' % TOPSRCDIR] + Libxul('xul') FORCE_STATIC_LIB = True