2002-06-18 Don Howard <dhoward@redhat.com>
authorDon Howard <dhoward@redhat.com>
Tue, 18 Jun 2002 23:41:02 +0000 (23:41 +0000)
committerDon Howard <dhoward@redhat.com>
Tue, 18 Jun 2002 23:41:02 +0000 (23:41 +0000)
        * valops.c (value_ind): Use value_at_lazy() when dereferencing
        type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
        suggesting this solution.

gdb/ChangeLog
gdb/valops.c

index d168f6b39fccc41f099c4eb5bdf8ef1331a70592..70ca5ed1899e1ab412722207fc51647a03d6f81e 100644 (file)
@@ -1,3 +1,9 @@
+2002-06-18  Don Howard  <dhoward@redhat.com>
+        * valops.c (value_ind): Use value_at_lazy() when dereferencing
+        type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
+        suggesting this solution.
+
 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
 
        * config/romp/xm-rtbsd.h: Delete file.
index 474c53a5088b25f0d7996d026b1d58549b642475..514a9f14b7158fe2fa3954941119e5956674b0cc 100644 (file)
@@ -961,9 +961,9 @@ value_ind (struct value *arg1)
      to do.  "long long" variables are rare enough that
      BUILTIN_TYPE_LONGEST would seem to be a mistake.  */
   if (TYPE_CODE (base_type) == TYPE_CODE_INT)
-    return value_at (builtin_type_int,
-                    (CORE_ADDR) value_as_long (arg1),
-                    VALUE_BFD_SECTION (arg1));
+    return value_at_lazy (builtin_type_int,
+                         (CORE_ADDR) value_as_long (arg1),
+                         VALUE_BFD_SECTION (arg1));
   else if (TYPE_CODE (base_type) == TYPE_CODE_PTR)
     {
       struct type *enc_type;