aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dwarf2-frame.c')
-rw-r--r--gdb/dwarf2-frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index 03984e2..fc0ac8b 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -1176,7 +1176,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
{
ULONGEST value;
unsigned char *end_buf = buf + (sizeof (value) + 1) * 8 / 7;
- *bytes_read_ptr = read_uleb128 (buf, end_buf, &value) - buf;
+ *bytes_read_ptr += read_uleb128 (buf, end_buf, &value) - buf;
return base + value;
}
case DW_EH_PE_udata2:
@@ -1192,7 +1192,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
{
LONGEST value;
char *end_buf = buf + (sizeof (value) + 1) * 8 / 7;
- *bytes_read_ptr = read_sleb128 (buf, end_buf, &value) - buf;
+ *bytes_read_ptr += read_sleb128 (buf, end_buf, &value) - buf;
return base + value;
}
case DW_EH_PE_sdata2: