Print "dynamic length" string when printing the type of a c VLA

gdb/

2013-08-30  Keven Boell  <keven.boell@intel.com>

	* c-typeprint.c (c_type_print_varspec_suffix): Added
	check for non existing const high bound. If so, print
	"dyanmic length" string to the console instead of
	random length.

Change-Id: I238616814d0baae07b68f80fd61e664b5fbfc4d0
Signed-off-by: Keven Boell <keven.boell@intel.com>
Resolve dynamic values in field types

gdb/

2013-08-30  Keven Boell  <keven.boell@intel.com>

	* gdbtypes.c (resolve_dynamic_values_1): Resolve
	dynamic values in field types.

Change-Id: I1f829d23326b15572160423e7e5a21c0695bb3f9
Signed-off-by: Keven Boell <keven.boell@intel.com>
Made resolve_dynamic_values more generic.

gdb/

2013-09-03  Keven Boell  <keven.boell@intel.com>

	* gdbtypes.c (static_bounds_p): Add null pointer
	check and associated flag.
	(dynamic_type_p): Add check for field types.
	(is_dynamic_type): New function.
	(type_contains_dynamic_types): New function.
	(resolve_dynamic_values_1): Use of new functions
	and correct use of offset.
	* value.c (value_from_ulongest): Call to resolve
	dynamic values in type when accessing pointers
	to print the sizes correctly.

Change-Id: I52ddc2c46b70b870005351df2df33157b9b34352
Signed-off-by: Keven Boell <keven.boell@intel.com>
Adapted test regular expressions to current implementation.

gdb/testsuite/

2013-09-04  Keven Boell  <keven.boell@intel.com>

	* gdb.base/vla-datatypes.exp: Adapted regular expressions
	to cover real sizes instead the "variable" keyword.
	* gdb.fortran/vla-type.exp: Wrong usage of sub scripts
	and datatypes in regular expressions.

Change-Id: I05a7b83aaf1da5630f0f20dcaad5f72dfe7d29fc
Signed-off-by: Keven Boell <keven.boell@intel.com>