From 52e9fde8139062bf1bef6b9ec97dbdc647afcd47 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Mon, 22 Mar 2010 18:47:00 +0000 Subject: [PATCH] 2010-03-22 Stan Shebs * value.c (value_static_field): Be lazy about the field's value. --- gdb/ChangeLog | 9 ++++----- gdb/value.c | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6a8ceb9ee98..cb022786eb2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-03-22 Stan Shebs + + * value.c (value_static_field): Be lazy about the field's value. + 2010-03-22 Reid Kleckner PR gdb/11094 @@ -5,11 +9,6 @@ bp_jit_event. (disable_breakpoints_in_shlibs): Likewise. -2010-03-22 Reid Kleckner - - PR gdb/11094 - * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add bp_jit_event - 2010-03-22 Ulrich Weigand * dwarf2read.c (partial_die_parent_scope): Work around buggy diff --git a/gdb/value.c b/gdb/value.c index b9c4722461d..19386b615ac 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -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 -- 2.30.2