diff options
author | xtkoba <[email protected]> | 2021-08-19 06:01:24 +0900 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2021-09-23 12:29:07 -0700 |
commit | 5d756118af16d22c9b276bad86464050d9100cce () | |
tree | 7fbbd4317fa6a11be81c58ef8a222eedaf75b187 /addr2line.c | |
parent | 77e6715d67b92b16bcb4588e0da37b494cdc5278 (diff) |
Use the correct address size
Notes: Merged: https://.com/ruby/ruby/pull/4439
-rw-r--r-- | addr2line.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1410,10 +1410,10 @@ static uint64_t read_dw_form_addr(DebugInfoReader *reader, const char **ptr) { const char *p = *ptr; - *ptr = p + reader->format; - if (reader->format == 4) { return read_uint32(&p); - } else if (reader->format == 8) { return read_uint64(&p); } else { fprintf(stderr,"unknown address_size:%d", reader->address_size); |