X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fada-typeprint.c;h=f64ec4178bee2581f345973375f36018995559dd;hb=e62e21fd47826fd5501e7e06106c202763e7b260;hp=03c345a07c105b87117330b42c6c38a757e87232;hpb=859cf5d1dea467019bf0a822eeda059427ecf440;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 03c345a07c..f64ec4178b 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -131,6 +131,7 @@ print_range (struct type *type, struct ui_file *stream) case TYPE_CODE_ENUM: { struct type *target_type; + target_type = TYPE_TARGET_TYPE (type); if (target_type == NULL) target_type = type;