diff options
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c index 355194e..3d460bd 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -3398,6 +3398,9 @@ value_from_contents_and_address (struct type *type, v = allocate_value_lazy (resolved_type); else v = value_from_contents (resolved_type, valaddr); + if (TYPE_DATA_LOCATION (resolved_type) != NULL + && TYPE_DATA_LOCATION_KIND (resolved_type) == PROP_CONST) + address = TYPE_DATA_LOCATION_ADDR (resolved_type); set_value_address (v, address); VALUE_LVAL (v) = lval_memory; return v; |