dwarf: make allocated/associated pointer

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

	* gdbtypes.h (struct main_type): Allocated/associated needs
	to be allocated.
	* dwarf2loc.c (maintenance_dwarf2_vla_command): Reflect
	allocated/associated uses.
	* dwarf2read.c (set_die_type): Allocate allocated/assicated.

Change-Id: I64acd513d1d88f6960cb25eb9ecfa91a011f042e
type: support for allocatable flag

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

	* gdbtypes.c (resolve_dynamic_values): Evaluate allocated baton and set
        the presents of the type_allocated bit accordingly.

Change-Id: I2b6430411640553f94d0d849bb25e56187f6618e
ui: check allocatable flags and emit a message accordingly

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

	* valprint.c (val_print_not_allocated): New function.
	(valprint_check_validity): Check if allocatable flag is set and call
	the newly added function to emit a message to the user.

Change-Id: I016b8d5410cd86eea95e94d7c7448a0511285e3e
type: change function prototype to receive struct obstack as argument

	* gdbtypes.c (resolve_dynamic_values): Create obstack and pass to
	create_copied_types_hash.
	(create_copied_types_hash): Change function argument to struct obstack.
	* gdbtypes.h (create_copied_types_hash): Change function argument to
	struct obstack.
	* python/py-type.c (save_objfile_types): Pass obstack to create_copied_types_hash.
	* value.c (preserve_values): Pass obstack to create_copied_types_hash.

Change-Id: I09f66370f47ed765d82db93b6f049a19a94d776e
type: make use of obstack to remporary allocate types.

	* gdbtypes.c (dynamic_type_p): New function.
	(resolve_dynamic_values): Make use of obstack.

Change-Id: Ief5026e7e58673333d8595072bcf1a46e08052ff