[PATCH] [WineDbg]: print array size when looking at its type

Eric Pouech eric.pouech at orange.fr
Sun Jun 28 14:00:11 CDT 2009




A+
---

 programs/winedbg/types.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index cc981a9..a13f77f 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -671,7 +671,10 @@ int types_print_type(const struct dbg_type* type, BOOL details)
         types_get_info(type, TI_GET_TYPE, &subtype.id);
         subtype.module = type->module;
         types_print_type(&subtype, details);
-        dbg_printf(" %s[]", name);
+        if (types_get_info(type, TI_GET_COUNT, &count))
+            dbg_printf(" %s[%d]", name, count);
+        else
+            dbg_printf(" %s[]", name);
         break;
     case SymTagEnum:
         dbg_printf("enum %s", name);





More information about the wine-patches mailing list