*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / p-lang.c
index 08738ac28007d63da5506a7450941a9f6bc4c5e9..64d2e9f9be6ab66b742b7ae692ba8e9b20f971bc 100644 (file)
@@ -222,7 +222,11 @@ pascal_printstr (struct ui_file *stream, struct type *type,
   unsigned int things_printed = 0;
   int in_quotes = 0;
   int need_comma = 0;
-  int width = TYPE_LENGTH (type);
+  int width;
+
+  /* Preserve TYPE's original type, just set its LENGTH.  */
+  check_typedef (type);
+  width = TYPE_LENGTH (type);
 
   /* If the string was not truncated due to `set print elements', and
      the last byte of it is a null, we don't print that, in traditional C
This page took 0.024245 seconds and 4 git commands to generate.