From: Cary Coutant Date: Mon, 26 Jan 2015 23:02:54 +0000 (-0800) Subject: Fix to read signed LEB128 for operand to DW_LNS_set_address_from_logical. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7318adf46dfee58ee4fe97799c304dfe73feda3;p=thirdparty%2Fbinutils-gdb.git Fix to read signed LEB128 for operand to DW_LNS_set_address_from_logical. 2015-01-26 Cary Coutant binutils/ * dwarf.c (display_line_program): Operand to DW_LNS_set_address_from_logical is signed. --- diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 1f46c3243e1..b666ae94065 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -3263,7 +3263,7 @@ display_line_program (unsigned char *start, unsigned char *end, else { /* DW_LNS_set_address_from_logical */ - adv = read_uleb128 (data, & bytes_read, end); + adv = read_sleb128 (data, & bytes_read, end); data += bytes_read; state_machine_regs.line += adv; logical = state_machine_regs.line;