From: Jakub Jelinek Date: Thu, 9 Sep 2010 12:08:59 +0000 (+0000) Subject: * dwarf.c (decode_location_expression): Fix data adjustment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8383c69606c8576d1d1852cda70763e1107f0316;p=binutils-gdb.git * dwarf.c (decode_location_expression): Fix data adjustment for DW_OP_GNU_implicit_pointer in v3+. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 6cdb68b6901..b62e9e003be 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2010-09-09 Jakub Jelinek + + * dwarf.c (decode_location_expression): Fix data adjustment + for DW_OP_GNU_implicit_pointer in v3+. + 2010-09-09 Tristan Gingold * NEWS: Add entry to NEWS for hppa/som. diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 17a608c9fa0..ebe727105ea 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -1122,7 +1122,7 @@ decode_location_expression (unsigned char * data, printf ("DW_OP_GNU_implicit_pointer: <0x%lx> %ld", (long) byte_get (data, offset_size), read_leb128 (data + offset_size, &bytes_read, 1)); - data += offset_size; + data += offset_size + bytes_read; } break;