[all-commits] [llvm/llvm-project] 59bb9b: [lldb] Expose discontinuous functions through SBFu...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Dec 3 01:14:56 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59bb9b915ef9137709313190395da56364b92db6
      https://github.com/llvm/llvm-project/commit/59bb9b915ef9137709313190395da56364b92db6
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2024-12-03 (Tue, 03 Dec 2024)

  Changed paths:
    M lldb/include/lldb/API/SBAddressRangeList.h
    M lldb/include/lldb/API/SBFunction.h
    M lldb/include/lldb/Core/AddressRangeListImpl.h
    M lldb/include/lldb/Symbol/Function.h
    M lldb/source/API/SBFunction.cpp
    M lldb/source/Core/AddressRangeListImpl.cpp
    A lldb/test/Shell/ScriptInterpreter/Python/sb_function_ranges.s

  Log Message:
  -----------
  [lldb] Expose discontinuous functions through SBFunction::GetRanges (#117532)

SBFunction::GetEndAddress doesn't really make sense for discontinuous
functions, so I'm declaring it deprecated. GetStartAddress sort of makes
sense, if one uses it to find the functions entry point, so I'm keeping
that undeprecated.

I've made the test a Shell tests because these make it easier to create
discontinuous functions regardless of the host os and architecture. They
do make testing the python API harder, but I think I've managed to come
up with something not entirely unreasonable.



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