summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-11 23:55:45 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-11 23:55:45 (GMT)
commit69f06e9e8444acc0641c3c5e6210123772ddcb8d (patch)
tree7cc57614f3a7b71b7aaa0075b9c0c403ea74a930 /addr2line.c
parent692a5f2164ecb5ba950c2431033fedca84121db6 (diff)
fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/addr2line.c b/addr2line.c
index 99f50f5..75b1a8c 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -850,7 +850,7 @@ static uint32_t
read_uint24(char **ptr) {
const unsigned char *p = (const unsigned char *)*ptr;
*ptr = (char *)(p + 3);
- return (get_uint8(p) << 16) | get_uint16(p+1);
+ return (*p << 16) | get_uint16(p+1);
}
static uint32_t
@@ -1131,13 +1131,13 @@ debug_info_reader_read_value(DebugInfoReader *reader, uint64_t form, DebugInfoVa
set_uint_value(v, read_uint64(&reader->p));
break;
case DW_FORM_implicit_const:
- set_sint_value(v, read_sleb128(&reader->q));
+ set_int_value(v, sleb128(&reader->q));
break;
case DW_FORM_loclistx:
- set_uint_value(v, read_uleb128(&reader->q));
+ set_uint_value(v, read_uleb128(reader));
break;
case DW_FORM_rnglistx:
- set_uint_value(v, read_uleb128(&reader->q));
+ set_uint_value(v, read_uleb128(reader));
break;
case DW_FORM_ref_sup8:
set_uint_value(v, read_uint64(&reader->p));