* dwarf2read.c (read_subrange_type): Call read_subrange_type.
* p-lang.c (pascal_printstr): Likewise.
+2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (read_subrange_type): Call read_subrange_type.
+ * p-lang.c (pascal_printstr): Likewise.
+
2010-07-09 Tom Tromey <tromey@redhat.com>
* python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
LONGEST negative_mask;
base_type = die_type (die, cu);
+ /* Preserve BASE_TYPE's original type, just set its LENGTH. */
+ check_typedef (base_type);
/* The die_type call above may have already set the type for this DIE. */
range_type = get_die_type (die, cu);
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