OSDN Git Service

DWARF: Compensate for compiler's off-by-one instruction.
authorDavid Srbecky <dsrbecky@google.com>
Fri, 11 Mar 2016 14:25:00 +0000 (14:25 +0000)
committerDavid Srbecky <dsrbecky@google.com>
Fri, 11 Mar 2016 16:18:50 +0000 (16:18 +0000)
commit252fa90d25eb3fa9c4189304d021533c9657fea7
tree3fd03332a888b8e3902dbdc1f0c9f830a55ecc8d
parent60e10c8564f47de0b7f29b26d040c591d5a396b5
DWARF: Compensate for compiler's off-by-one instruction.

The compiler generates stackmaps with PC value which is *after*
the instruction rather PC of the instruction itself. This causes
trouble when generating native line number mapping since the
branch instruction itself will not be mapped, and consequently
we get incorrect line number in backtraces. Add code to compensate
for this. See the in-code comment for more details.

Change-Id: I72c992e6d08a767f314290d562421b251ae60732
compiler/debug/elf_debug_line_writer.h