From 46c51d1691163853525003cb23f831524e2e016f Mon Sep 17 00:00:00 2001 From: nikitalita <69168929+nikitalita@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:05:41 -0800 Subject: [PATCH] revamp godot.natvis --- platform/windows/godot.natvis | 141 ++++++++++++++++++++++++++++------ 1 file changed, 116 insertions(+), 25 deletions(-) diff --git a/platform/windows/godot.natvis b/platform/windows/godot.natvis index 36b0919185be..94cc52be98fd 100644 --- a/platform/windows/godot.natvis +++ b/platform/windows/godot.natvis @@ -5,11 +5,43 @@ _cowdata._ptr ? (((const unsigned int *)(_cowdata._ptr))[-1]) : 0 _cowdata._ptr ? (((const unsigned int *)(_cowdata._ptr))[-1]) : 0 - _cowdata._ptr + ($T1 *) _cowdata._ptr + + + _p->array._cowdata._ptr ? (((const unsigned int *)(_p->array._cowdata._ptr))[-1]) : 0 + + _p->array._cowdata._ptr ? (((const unsigned int *)(_p->array._cowdata._ptr))[-1]) : 0 + (Variant *) _p->array._cowdata._ptr + + + + + + + _p->array._cowdata._ptr ? (((const unsigned int *)(_p->array._cowdata._ptr))[-1]) : 0 + + _p->array._cowdata._ptr ? (((const unsigned int *)(_p->array._cowdata._ptr))[-1]) : 0 + (Variant *) _p->array._cowdata._ptr + + + + + + + _p && _p->variant_map.head_element ? _p->variant_map.num_elements : 0 + + _p && _p->variant_map.head_element ? _p->variant_map.num_elements : 0 + _p ? _p->variant_map.head_element : nullptr + next + (*this),view(MapHelper) + + + + count @@ -32,18 +64,80 @@ - + + [empty] + {{[absolute] = {data->absolute} [path] = {data->path,view(NodePathHelper)} [subpath] = {data->subpath,view(NodePathHelper)}}} - num_elements + data->path,view(NodePathHelper) + data->subpath,view(NodePathHelper) + data->absolute + + + + + + + _cowdata._ptr ? (((const unsigned int *)(_cowdata._ptr))[-1]) : 0 + ((StringName *)_cowdata._ptr),view(NodePathHelper) + + + + + + {_data->cname,s8b} + {_data->name,s32b} + [empty] + _data->cname,s8b + _data->name,s32b + + + + {{Key = {($T1 *) &data.key} Value = {($T2 *) &data.value}}} + + ($T1 *) &data.key + ($T2 *) &data.value + + + + + + + head_element ? num_elements : 0 - num_elements + head_element ? num_elements : 0 head_element next - data + (*this) + + + + + head_element ? num_elements : 0 + + head_element ? num_elements : 0 + head_element + next + (*this),view(MapHelper) + + + + + + {value} + + + + {data.value} + + ($T1 *) &data.key + ($T2 *) &data.value + + + *(reinterpret_cast<int*>(_cowdata._ptr) - 1) @@ -58,11 +152,6 @@ {dynamic_cast<CallableCustomMethodPointerBase*>(key.custom)->text} - nil @@ -82,22 +171,22 @@ {*(Plane *)_data._mem} {*(Quaternion *)_data._mem} {*(Color *)_data._mem} + {*(StringName *)_data._mem} {*(NodePath *)_data._mem} {*(::RID *)_data._mem} - {*(Object *)_data._mem} + {*(*reinterpret_cast<ObjData*>(&_data._mem[0])).obj} {*(Dictionary *)_data._mem} {*(Array *)_data._mem} {reinterpret_cast<const Variant::PackedArrayRef<unsigned char>*>(_data.packed_array)->array} {reinterpret_cast<const Variant::PackedArrayRef<int>*>(_data.packed_array)->array} - + {*reinterpret_cast<PackedInt64Array *>(&_data.packed_array[1])} {reinterpret_cast<const Variant::PackedArrayRef<float>*>(_data.packed_array)->array} {reinterpret_cast<const Variant::PackedArrayRef<double>*>(_data.packed_array)->array} {reinterpret_cast<const Variant::PackedArrayRef<String>*>(_data.packed_array)->array} {reinterpret_cast<const Variant::PackedArrayRef<Vector2>*>(_data.packed_array)->array} {reinterpret_cast<const Variant::PackedArrayRef<Vector3>*>(_data.packed_array)->array} {reinterpret_cast<const Variant::PackedArrayRef<Color>*>(_data.packed_array)->array} + [INVALID] ((String *)(_data._mem))->_cowdata._ptr,s32 @@ -116,20 +205,22 @@ *(Plane *)_data._mem *(Quaternion *)_data._mem *(Color *)_data._mem + *(StringName *)_data._mem *(NodePath *)_data._mem *(::RID *)_data._mem - *(Object *)_data._mem + *(*reinterpret_cast<ObjData*>(&_data._mem[0])).obj *(Dictionary *)_data._mem *(Array *)_data._mem reinterpret_cast<const Variant::PackedArrayRef<unsigned char>*>(_data.packed_array)->array - *(PackedInt32Array *)_data._mem - *(PackedInt64Array *)_data._mem - *(PackedFloat32Array *)_data._mem - *(PackedFloat64Array *)_data._mem - *(PackedStringArray *)_data._mem - *(PackedVector2Array *)_data._mem - *(PackedVector3Array *)_data._mem - *(PackedColorArray *)_data._mem + reinterpret_cast<const Variant::PackedArrayRef<int>*>(_data.packed_array)->array + *reinterpret_cast<PackedInt64Array *>(&_data.packed_array[1]) + reinterpret_cast<const Variant::PackedArrayRef<float>*>(_data.packed_array)->array + reinterpret_cast<const Variant::PackedArrayRef<double>*>(_data.packed_array)->array + reinterpret_cast<const Variant::PackedArrayRef<String>*>(_data.packed_array)->array + reinterpret_cast<const Variant::PackedArrayRef<Vector2>*>(_data.packed_array)->array + reinterpret_cast<const Variant::PackedArrayRef<Vector3>*>(_data.packed_array)->array + reinterpret_cast<const Variant::PackedArrayRef<Color>*>(_data.packed_array)->array + @@ -148,10 +239,10 @@ - {_data->cname} + {_data->cname,na} {_data->name,s32} [empty] - _data->cname + _data->cname,na _data->name,s32