[all-commits] [llvm/llvm-project] d71fa3: [lldb] Fix inline function resolution for disconti...

Pavel Labath via All-commits all-commits at lists.llvm.org
Thu Nov 21 23:33:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d71fa331df49450361a9e5cd4e48ae4a79b6126b
      https://github.com/llvm/llvm-project/commit/d71fa331df49450361a9e5cd4e48ae4a79b6126b
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M lldb/source/Symbol/Block.cpp
    M lldb/source/Symbol/SymbolContext.cpp
    A lldb/test/Shell/SymbolFile/DWARF/x86/discontinuous-inline-function.s

  Log Message:
  -----------
  [lldb] Fix inline function resolution for discontinuous functions (#116777)

The problem here is the assumption that the entire function will be
placed in a single section. This will ~never be the case for a
discontinuous function, as the point of splitting the function is to let
the linker group parts of the function according to their "hotness".

The fix is to change the offset computation to use file addresses
instead.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list