/* varobj support for Ada.
- Copyright (C) 2012-2018 Free Software Foundation, Inc.
+ Copyright (C) 2012-2019 Free Software Foundation, Inc.
This file is part of GDB.
struct type *type = (var->value != nullptr
? value_type (var->value.get ()) : var->type);
+ if (TYPE_CODE (type) == TYPE_CODE_REF)
+ type = TYPE_TARGET_TYPE (type);
+
if (ada_is_access_to_unconstrained_array (type))
{
/* This is in reality a pointer to an unconstrained array.