From f7318adf46dfee58ee4fe97799c304dfe73feda3 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Mon, 26 Jan 2015 15:02:54 -0800 Subject: [PATCH] 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. --- binutils/dwarf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2