gdb:
authorKen Werner <ken.werner@de.ibm.com>
Wed, 3 Nov 2010 14:21:58 +0000 (14:21 +0000)
committerKen Werner <ken.werner@de.ibm.com>
Wed, 3 Nov 2010 14:21:58 +0000 (14:21 +0000)
commitdbc98a8b6eb97ea7315e04103cdfec5add47f3c4
tree767338cf124ded0f5c63ea6521f6a72b84095488
parent27dee630aae66dd61eb20135e7b8384088b1a496
gdb:
* dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
DIE and set the length of the type.
* gdbtypes.h (get_array_bounds): Move here from valprint.h.
* gdbtypes.c (get_array_bounds): Move here from valprint.c and
return 0 if the corresponding bounds of the type are undefined.
* valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
* valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
(val_print_array_elements): 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 (vector_binop): Likewise.
* valops.c (value_cast): Likewise.
* c-valprint.c (c_val_print): Likewise.
* c-typeprint.c (c_type_print_varspec_suffix): Likewise.

gdb/testsuite:
* gdb.base/gnu_vector.exp: Adjust expect messages.
12 files changed:
gdb/ChangeLog
gdb/c-typeprint.c
gdb/c-valprint.c
gdb/dwarf2read.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/gnu_vector.exp
gdb/valarith.c
gdb/valops.c
gdb/valprint.c
gdb/valprint.h
This page took 0.025285 seconds and 4 git commands to generate.