aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2015-01-26 15:02:54 -0800
committerCary Coutant <ccoutant@google.com>2015-01-26 15:02:54 -0800
commitf7318adf46dfee58ee4fe97799c304dfe73feda3 (patch)
treecaa6c37ed899e45cea3882b78fd4efb33638f080
parenta38fe6acd27c8ae393c1814ac960c858588527da (diff)
downloadgdb-f7318adf46dfee58ee4fe97799c304dfe73feda3.zip
gdb-f7318adf46dfee58ee4fe97799c304dfe73feda3.tar.gz
gdb-f7318adf46dfee58ee4fe97799c304dfe73feda3.tar.bz2
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.
-rw-r--r--binutils/dwarf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 1f46c32..b666ae9 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;