diff options
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r-- | gdb/dwarf2loc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 027e135..7a54f43 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -57,6 +57,7 @@ find_location_expression (struct dwarf2_loclist_baton *baton, int length; struct objfile *objfile = dwarf2_per_cu_objfile (baton->per_cu); struct gdbarch *gdbarch = get_objfile_arch (objfile); + enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); unsigned int addr_size = dwarf2_per_cu_addr_size (baton->per_cu); CORE_ADDR base_mask = ~(~(CORE_ADDR)1 << (addr_size * 8 - 1)); /* Adjust base_address for relocatable objects. */ @@ -89,7 +90,7 @@ find_location_expression (struct dwarf2_loclist_baton *baton, low += base_address; high += base_address; - length = extract_unsigned_integer (loc_ptr, 2); + length = extract_unsigned_integer (loc_ptr, 2, byte_order); loc_ptr += 2; if (pc >= low && pc < high) |