2006-11-30 Jim Blandy <jimb@codesourcery.com>
authorJim Blandy <jimb@codesourcery.com>
Fri, 1 Dec 2006 00:32:29 +0000 (00:32 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 1 Dec 2006 00:32:29 +0000 (00:32 +0000)
* ada-lang.c (value_subscript_packed): Don't bother to set the
lvalue type of the returned value here;
ada_value_primitive_packed_val takes care of that.

gdb/ChangeLog
gdb/ada-lang.c

index 5f8dbc0da15f393553df1675c992d21f558dd1a8..c26130cf9a26e2d7180f8032ba23a7f2a34d2eec 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-30  Jim Blandy  <jimb@codesourcery.com>
+
+       * ada-lang.c (value_subscript_packed): Don't bother to set the
+       lvalue type of the returned value here;
+       ada_value_primitive_packed_val takes care of that.
+
 2006-11-30  Nick Roberts  <nickrob@snap.net.nz>
 
        * mi/mi-cmd-var.c (mi_cmd_var_list_children): Remove unused
index cc63e0a9c772ea0389a45885d451624626aebdf8..7de7a191520205ba573b808e9083fcab6c2db33c 100644 (file)
@@ -1887,10 +1887,6 @@ value_subscript_packed (struct value *arr, int arity, struct value **ind)
 
   v = ada_value_primitive_packed_val (arr, NULL, elt_off, bit_off,
                                       bits, elt_type);
-  if (VALUE_LVAL (arr) == lval_internalvar)
-    VALUE_LVAL (v) = lval_internalvar_component;
-  else
-    VALUE_LVAL (v) = VALUE_LVAL (arr);
   return v;
 }