From 56eb65bdc1c09ce20ade6cd53ef23729055c623b Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 26 Jul 2012 02:03:16 +0000 Subject: * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter SIZE to size_t. (dwarf2_evaluate_loc_desc): Likewise. (dwarf2_loc_desc_needs_frame): Likewise. (locexpr_describe_location_1): Likewise. * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as size_t. (struct dwarf2_loclist_baton): Likewise. * dwarf2read.c (struct dwarf_block): Likewise. (dump_die_shallow): Use pulongest to print dwarf_block.size. (decode_locdesc): Expand SIZE and I to size_t. --- gdb/dwarf2loc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/dwarf2loc.h') diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h index e9d06a3..326838f 100644 --- a/gdb/dwarf2loc.h +++ b/gdb/dwarf2loc.h @@ -77,7 +77,7 @@ struct type *dwarf2_get_die_type (cu_offset die_offset, struct value *dwarf2_evaluate_loc_desc (struct type *type, struct frame_info *frame, const gdb_byte *data, - unsigned short size, + size_t size, struct dwarf2_per_cu_data *per_cu); CORE_ADDR dwarf2_read_addr_index (struct dwarf2_per_cu_data *per_cu, @@ -97,7 +97,7 @@ struct dwarf2_locexpr_baton /* Length of the location expression. For optimized out expressions it is zero. */ - unsigned long size; + size_t size; /* The compilation unit containing the symbol whose location we're computing. */ @@ -114,7 +114,7 @@ struct dwarf2_loclist_baton const gdb_byte *data; /* Length of the location list. */ - unsigned long size; + size_t size; /* The compilation unit containing the symbol whose location we're computing. */ -- cgit v1.1