aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-07-12 17:07:11 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-07-12 17:07:11 +0000
commit953ac07ed78d7fa016fe4ef551afc513700aa393 (patch)
treee28f1983643f50e0c2353176c89b595a65d8de6d /gdb/dwarf2read.c
parentc0e7d30b1e38dd09815e6081fc3d89bf3c478feb (diff)
downloadgdb-953ac07ed78d7fa016fe4ef551afc513700aa393.zip
gdb-953ac07ed78d7fa016fe4ef551afc513700aa393.tar.gz
gdb-953ac07ed78d7fa016fe4ef551afc513700aa393.tar.bz2
gdb/
* dwarf2read.c (read_subrange_type): Call read_subrange_type. * p-lang.c (pascal_printstr): Likewise.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index e4ab034..d128312 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -6332,6 +6332,8 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu)
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);