aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorHui Li <lihui@loongson.cn>2022-12-08 19:59:11 +0800
committerWeining Lu <luweining@loongson.cn>2022-12-08 19:59:39 +0800
commitf0f33957d03444eefc8264cbfe7f5cfe7bee6f3d (patch)
tree214c4446cb08169b1f17c5e39f1724004cec93a3 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent2bfef8d5370fbe9d500441b2e1e3fe4a4d68deec (diff)
downloadllvm-f0f33957d03444eefc8264cbfe7f5cfe7bee6f3d.zip
llvm-f0f33957d03444eefc8264cbfe7f5cfe7bee6f3d.tar.gz
llvm-f0f33957d03444eefc8264cbfe7f5cfe7bee6f3d.tar.bz2
[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
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index ffa15f4..5485d8c 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -883,7 +883,7 @@ bool NativeProcessLinux::MonitorClone(NativeThreadLinux &parent,
bool NativeProcessLinux::SupportHardwareSingleStepping() const {
if (m_arch.IsMIPS() || m_arch.GetMachine() == llvm::Triple::arm ||
- m_arch.GetTriple().isRISCV())
+ m_arch.GetTriple().isRISCV() || m_arch.GetTriple().isLoongArch())
return false;
return true;
}