Some binaries (such as the FreeBSD kernel) contain a mixture of CUs with and without debug information. Previously translate() exited upon encountering a CU without debug information. Instead, just move on to the next CU.
Current behaviour:
addr2line -e /usr/lib/debug/boot/kernel/kernel.debug ffffffff80d27d30 addr2line: dwarf_srclines: No entry found [dwarf_srclines(69)] /tank/emaste/src/git-stable-10/sys/compat/freebsd32/freebsd32_misc.c:3186
With this change:
addr2line -e /usr/lib/debug/boot/kernel/kernel.debug ffffffff80d27d30 /tank/emaste/src/git-stable-10/sys/amd64/amd64/machdep.c:1813