[patch] DW_AT_byte_size for array type entries

Joel Brobecker brobecker@adacore.com
Tue Dec 14 05:42:00 GMT 2010


> 2010-12-13  Ken Werner  <ken.werner@de.ibm.com>
> 
> 	* valops.c (value_one): Use get_array_bounds to compute the number
> 	of array elements instead of dividing the length of the array by the
> 	length of the element types.
> 	* valarith.c (value_complement, value_neg): Likewise.

This is OK.

As a followup patch, how about defining a new function `get_array_length'
next to get_array_bounds? That way, you  can factorize of this code that
keeps being repeated...

-- 
Joel



More information about the Gdb-patches mailing list