[PATCH] D47901: [WIP] [WebAssembly] Update .debug_line section PC addresses during LEB optimization

Yury Delendik via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 7 15:45:58 PDT 2018


yurydelendik added a comment.

In https://reviews.llvm.org/D47901#1125812, @ruiu wrote:

> What I meant is to continue using the bytecode offset as before, but count "bytecode offset" in the fully expanded form instead of the raw in-file form. So, any LEB128 number is counted as 5 byte long. Then, that "virtual bytecode offset" should exactly match the original, uncompressed byte code offset, eliminating the need of adjusting any byte offset in DWARF.


Yes, that's a valid solution too -- we just need to specify a normalized form that every debugger will consider when it will decode the data. Thanks. I had also idea to supply "code transform" custom sections that reflex the same idea, but without a burden for debugger to know about normalized "virtual bytecode offset" format.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D47901





More information about the llvm-commits mailing list