aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2010-03-22 18:47:00 +0000
committerStan Shebs <shebs@codesourcery.com>2010-03-22 18:47:00 +0000
commit52e9fde8139062bf1bef6b9ec97dbdc647afcd47 (patch)
tree72d49395243093777793e280924c172a427e38e1 /gdb/value.c
parent508ccb1f2ce1081c0c05bf089c923b4f4bcb5486 (diff)
downloadgdb-52e9fde8139062bf1bef6b9ec97dbdc647afcd47.zip
gdb-52e9fde8139062bf1bef6b9ec97dbdc647afcd47.tar.gz
gdb-52e9fde8139062bf1bef6b9ec97dbdc647afcd47.tar.bz2
2010-03-22 Stan Shebs <stan@codesourcery.com>
* value.c (value_static_field): Be lazy about the field's value.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c8
1 files changed, 4 insertions, 4 deletions
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