2010-03-22 Stan Shebs <stan@codesourcery.com>
authorStan Shebs <shebs@codesourcery.com>
Mon, 22 Mar 2010 18:47:00 +0000 (18:47 +0000)
committerStan Shebs <shebs@codesourcery.com>
Mon, 22 Mar 2010 18:47:00 +0000 (18:47 +0000)
* value.c (value_static_field): Be lazy about the field's value.

gdb/ChangeLog
gdb/value.c

index 6a8ceb9ee98faf5c0e488a925435bf3646bd7438..cb022786eb2bb75cd1879a0a048c7a6513eb66ee 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-22  Stan Shebs  <stan@codesourcery.com>
+
+       * value.c (value_static_field): Be lazy about the field's value.
+
 2010-03-22  Reid Kleckner  <reid@kleckner.net>
 
        PR gdb/11094
@@ -5,11 +9,6 @@
        bp_jit_event.
        (disable_breakpoints_in_shlibs): Likewise.
 
-2010-03-22  Reid Kleckner  <reid@kleckner.net>
-
-       PR gdb/11094
-       * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add bp_jit_event
-
 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * dwarf2read.c (partial_die_parent_scope): Work around buggy
index b9c4722461d5661e95ad098aba3c520b8af8a78e..19386b615acd4819d5fb320a44087ff7c34da1cd 100644 (file)
@@ -1813,8 +1813,8 @@ value_static_field (struct type *type, int fieldno)
 
   if (TYPE_FIELD_LOC_KIND (type, fieldno) == FIELD_LOC_KIND_PHYSADDR)
     {
-      retval = value_at (TYPE_FIELD_TYPE (type, fieldno),
-                        TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
+      retval = value_at_lazy (TYPE_FIELD_TYPE (type, fieldno),
+                             TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
     }
   else
     {
@@ -1831,8 +1831,8 @@ value_static_field (struct type *type, int fieldno)
            return NULL;
          else
            {
-             retval = value_at (TYPE_FIELD_TYPE (type, fieldno),
-                                SYMBOL_VALUE_ADDRESS (msym));
+             retval = value_at_lazy (TYPE_FIELD_TYPE (type, fieldno),
+                                     SYMBOL_VALUE_ADDRESS (msym));
            }
        }
       else