]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix to read signed LEB128 for operand to DW_LNS_set_address_from_logical.
authorCary Coutant <ccoutant@google.com>
Mon, 26 Jan 2015 23:02:54 +0000 (15:02 -0800)
committerCary Coutant <ccoutant@google.com>
Mon, 26 Jan 2015 23:02:54 +0000 (15:02 -0800)
2015-01-26  Cary Coutant  <ccoutant@google.com>

binutils/
* dwarf.c (display_line_program): Operand to
DW_LNS_set_address_from_logical is signed.

binutils/dwarf.c

index 1f46c3243e1fbb9e3d71be90ba12f38b32a9e3b2..b666ae940654d21c8765d387f35c31cd54f31378 100644 (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;