2009-01-13 Jim Blandy <jimb@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Tue, 13 Jan 2009 10:34:31 +0000 (10:34 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 13 Jan 2009 10:34:31 +0000 (10:34 +0000)
commit74bcbdf3cea56564d1f9f597c8458b86ed71f621
tree1ab2d8991bf751064e627c0f1cd8ba18a63357e2
parentd7dc3873fbc2c722d5ee850341be49028dc5c6b0
2009-01-13  Jim Blandy  <jimb@codesourcery.com>

Abstract out common code for copying value locations.

* value.h (set_value_component_location): New declaration.
* value.c (set_value_component_location): New function.
(value_primitive_field): Use it.
* valarith.c (value_subscript, value_subscripted_rvalue): Same.
* valops.c (search_struct_field, value_slice): Same.
* ada-lang.c (coerce_unspec_val_to_type)
(ada_value_primitive_packed_val): Same.
gdb/ChangeLog
gdb/ada-lang.c
gdb/valarith.c
gdb/valops.c
gdb/value.c
gdb/value.h