Fix to read signed LEB128 for operand to DW_LNS_set_address_from_logical.

2015-01-26  Cary Coutant  <ccoutant@google.com>

binutils/
	* dwarf.c (display_line_program): Operand to
	DW_LNS_set_address_from_logical is signed.
This commit is contained in:
Cary Coutant
2015-01-26 15:02:54 -08:00
parent a38fe6acd2
commit f7318adf46

View File

@@ -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;