cleanup: make allocate_value_contents static

2013-08-07  Sanimir Agovic  <sanimir.agovic@intel.com>

	* value.c (allocate_value_contents): Make static.
        * value.h (allocate_value_contents): Remove.

Change-Id: Iacca9f820f7fab039158b44c54aa41f7956bdc7c
cleanup: use existing value constructor

2013-08-07  Sanimir Agovic   <sanimir.agovic@intel.com>

	* value.c (value_from_contents_and_address): Use value_from_contents.

Change-Id: I29597c097f451e888e3715a76659355d5e6e89d4
cleanup: move value constructors value_at/value_at_lazy to value.c

2013-08-07  Sanimir Agovic  <sanimir.agovic@intel.com>

	* valops.c (get_value_at, value_at, value_at_lazy): Move to value.c

Change-Id: I13c54ef7bb3dac012be6801f55679446ddadc05b
cleanup: use value_lazy_at instead of of allocate_value_lazy and friends

2013-08-07  Sanimir Agovic  <sanimir.agovic@intel.com>

	* dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_lazy_at to
	construct a value.

Change-Id: I32c6e12ba12c87fae7b7b9bd3426a8ea7e033b3e
type: add new range type constructor to utilize new bound structure

Add new range type constructor function with low/high struct bound as parameter.
Make create_range_type use the function.

2013-07-26  Sanimir Agovic  <sanimir.agovic@intel.com>

	* gdbtypes.h (create_range_type_1): New function.
	* gdbtypes.c (create_range_type_1): New function.
	(create_range_type): Use create_range_type_1.

Change-Id: I70f0b9ad18647361ba6c4b61eb67f02d6b01cbe5
dwarf: remove type argument from attr_to_dwarf2_prop

2013-08-07  Sanimir Agovic  <sanimir.agovic@intel.com>

	* dwarf2read.c (attr_to_dwarf2_prop): Remove first argument and
        adapt all call sites.

Change-Id: I79c7906186d7a5577c5b695b114dc0e958bf45cd
dwarf: parse dynamic attributes for ranges

2013-08-07  Sanimir Agovic  <sanimir.agovic@intel.com>

	* dwarf2read.c (read_subrange_type): Parse and store dynamic values for
	DW_AT_lower_bound/DW_AT_lower_bound.

Change-Id: I54ec3282cb9a59b3aca95f022854aa1c01c5133c
type: allow passing NULL to allocate types with malloc

2013-08-07  Sanimir Agovic  <sanimir.agovic@intel.com>

	* gdbtypes.c (create_copied_types_hash):

Change-Id: I1f1b511bc6220c700bd1c3d55ba844e85741d2de
cleanup: make attr_to_locexprbaton arguments const

2013-08-07  Sanimir Agovic  <sanimir.agovic@intel.com>

	* dwarf2read.c (attr_to_locexprbaton): Make arguments const.
	(attr_to_locexprbaton_1): Make arguments const.
	(read_tag_string_type): Make append_ops const.

Change-Id: I295a2eb68273426f4c0d6500bd3fb2777d5a840c
fix: ignore location lists for now

2013-08-08  Sanimir Agovic  <sanimir.agovic@intel.com>

	* dwarf2read.c (attr_to_dwarf2_prop): Restrict DW_AT_location to a
        location expression.

Change-Id: I257e2dd40ab358eaf778dad61133985e77de706a
vla: initial support for upper_bound

2013-08-08  Sanimir Agovic  <sanimir.agovic@intel.com>

	* dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
	* dwarf2loc.h (dwarf2_locexpr_baton_eval): New function.
	* dwarf2read.c (read_subrange_type): Parse and store dynamic values
	for upper/lower bounds.
	* gdbtypes.c (create_array_type): Do not compute bounds for types
	with dynamic values.
	* gdbtypes.c (resolve_dynamic_prop): New function.
	* gdbtypes.c (static_bounds_p): New function.
	* gdbtypes.c (resolve_dynamic_values): New function.
	* gdbtypes.h (resolve_dynamic_values): New function.
	* value.c (value_from_contents_and_address): Call resolve_dynamic_values
	to resolve dynamic values.

Change-Id: I0f53ff558d6cf74bb9be3cc404adea14c0562504