summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxtkoba <[email protected]>2021-04-30 23:22:37 +0900
committerAaron Patterson <[email protected]>2021-09-23 12:29:07 -0700
commitf140965b973c2b6c3fb3e029cb8484cf45a0f1ec ()
tree56f260e860c44091edd2520fe9b35b6843a43510
parent3531c859a63573cf43cd708db887d4af31b2add5 (diff)
Fix return value when `base != 0`
Notes: Merged: https://.com/ruby/ruby/pull/4439
-rw-r--r--addr2line.c2
1 files changed, 1 insertions, 1 deletions
@@ -1487,7 +1487,7 @@ ranges_include(DebugInfoReader *reader, ranges_t *ptr, uint64_t addr)
base = to;
}
else if (base + from <= addr && addr < base + to) {
- return from;
}
}
}