OSDN Git Service

* dwarf2read.c (comp_unit_head): Use unsigned int consistently
authordevans <devans>
Fri, 10 Oct 2008 16:15:41 +0000 (16:15 +0000)
committerdevans <devans>
Fri, 10 Oct 2008 16:15:41 +0000 (16:15 +0000)
commit3678c9318591d91b1d4dbd84c4931863056b13e0
tree10a482e108f5cf6062760210fee9d135370ea987
parent1be4a7df61cda2fa06a91112514246dc482e6730
* dwarf2read.c (comp_unit_head): Use unsigned int consistently
for dwarf section offsets and sizes.
(dwarf2_cu): Ditto.
(dwarf2_per_cu_data): Ditto.
(create_all_comp_units): Change offset to unsigned int.
(load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.

* dwarf2read.c (read_initial_length): Delete cu_header arg.
All callers updated.
(read_checked_initial_length_and_offset): New function.
(read_offset_1): New function.
(read_offset): Call it.
(dwarf_decode_line_header): Call read_checked_initial_length_and_offset
instead of read_initial_length.  Call read_offset_1 instead of
read_offset.

* dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
All callers updated.

* dwarf2read.c (dwarf_attr_name): Unconditionally support all
DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
DW_AT_HP_block_index.
gdb/ChangeLog
gdb/dwarf2read.c