[all-commits] [llvm/llvm-project] eb96c8: [lldb] Implement (SB)Function::GetInstructions for...

Pavel Labath via All-commits all-commits at lists.llvm.org
Wed Jan 15 01:37:27 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb96c8c105226956c8ed5ab30699206f53de74f7
      https://github.com/llvm/llvm-project/commit/eb96c8c105226956c8ed5ab30699206f53de74f7
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2025-01-15 (Wed, 15 Jan 2025)

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

  Log Message:
  -----------
  [lldb] Implement (SB)Function::GetInstructions for discontinuous functions (#122933)

The main change is to permit the disassembler class to process/store
multiple (discontinuous) ranges of addresses. The result is not
ambiguous because each instruction knows its size (in addition to its
address), so we can check for discontinuity by looking at whether the
next instruction begins where the previous ends.

This patch doesn't handle the "disassemble" CLI command, which uses a
more elaborate mechanism for disassembling and printing instructions.



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