ruby-changes:52892
From: naruse <ko1@a...>
Date: Wed, 17 Oct 2018 08:57:52 +0900 (JST)
Subject: [ruby-changes:52892] naruse:r65104 (trunk): Support base address selection entry
naruse 2018-10-17 08:57:47 +0900 (Wed, 17 Oct 2018) New Revision: 65104 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65104 Log: Support base address selection entry Modified files: trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 65103) +++ addr2line.c (revision 65104) @@ -1348,7 +1348,11 @@ ranges_include(DebugInfoReader *reader, https://github.com/ruby/ruby/blob/trunk/addr2line.c#L1348 uintptr_t from = read_uintptr(&p); uintptr_t to = read_uintptr(&p); if (!from && !to) break; - if (base + from <= addr && addr <= base + to) { + if (from == UINTPTR_MAX) { + /* base address selection entry */ + base = to; + } + else if (base + from <= addr && addr <= base + to) { return from; } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/