[all-commits] [llvm/llvm-project] f0f339: [LLDB][LoongArch] Make software single stepping work

lhloongson via All-commits all-commits at lists.llvm.org
Thu Dec 8 04:00:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0f33957d03444eefc8264cbfe7f5cfe7bee6f3d
      https://github.com/llvm/llvm-project/commit/f0f33957d03444eefc8264cbfe7f5cfe7bee6f3d
  Author: Hui Li <lihui at loongson.cn>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M lldb/source/Plugins/Instruction/CMakeLists.txt
    A lldb/source/Plugins/Instruction/LoongArch/CMakeLists.txt
    A lldb/source/Plugins/Instruction/LoongArch/EmulateInstructionLoongArch.cpp
    A lldb/source/Plugins/Instruction/LoongArch/EmulateInstructionLoongArch.h
    M lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
    M lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.cpp
    M lldb/tools/lldb-server/CMakeLists.txt
    M lldb/tools/lldb-server/SystemInitializerLLGS.cpp

  Log Message:
  -----------
  [LLDB][LoongArch] Make software single stepping work

Hardware single stepping is not currently supported by the linux kernel.
In order to support single step debugging, add EmulateInstructionLoongArch
to implement the software Single Stepping. This patch only support the
simplest single step execution of non-jump instructions.

Reviewed By: SixWeining, DavidSpickett

Differential Revision: https://reviews.llvm.org/D139158




More information about the All-commits mailing list