From 3482d9bacfea8242868c4486caad3d080af6cb1e Mon Sep 17 00:00:00 2001 From: SupSuper Date: Tue, 18 Dec 2018 05:25:08 +0000 Subject: [PATCH] MSVC: Fix List visualisation showing infinite nodes --- .../create_project/scripts/scummvm.natvis | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/devtools/create_project/scripts/scummvm.natvis b/devtools/create_project/scripts/scummvm.natvis index e305bea74a3..855ab286fdf 100644 --- a/devtools/create_project/scripts/scummvm.natvis +++ b/devtools/create_project/scripts/scummvm.natvis @@ -4,12 +4,6 @@ Debug visualizers for a few common ScummVM types for Visual Studio 2012 and up. To use, copy this file into Documents\Visual Studio 20xx\Visualizers. - - Known issues: - - * Lists appear to be infinite (the same elements repeat over and over again). - Unfortunately, Lists don't store length information, and it's not possible to - detect whether a Node is the last one by the Node itself. --> @@ -74,11 +68,15 @@ {{ empty }} {{ non-empty }} - - _anchor._next - _next - ((Common::ListInternal::Node<$T1>*)this)->_data - + + + + + + ((Common::ListInternal::Node<$T1>*)iter)->_data + iter = iter->_next + +