From 52e9fde8139062bf1bef6b9ec97dbdc647afcd47 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Mon, 22 Mar 2010 18:47:00 +0000 Subject: 2010-03-22 Stan Shebs * value.c (value_static_field): Be lazy about the field's value. --- gdb/value.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/value.c') diff --git a/gdb/value.c b/gdb/value.c index b9c4722..19386b6 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 -- cgit v1.1