diff options
author | Weining Lu <luweining@loongson.cn> | 2022-12-08 19:06:07 +0800 |
---|---|---|
committer | Weining Lu <luweining@loongson.cn> | 2022-12-08 19:06:07 +0800 |
commit | 3a9e07b1e7f4718a0e117f3a732f1679c4bf2e30 (patch) | |
tree | cf436d47832f34f72807ed01166a68a69ce4467f /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
parent | aeac2e4884a3ce62c920cd51806a9396da64d9f7 (diff) | |
download | llvm-3a9e07b1e7f4718a0e117f3a732f1679c4bf2e30.zip llvm-3a9e07b1e7f4718a0e117f3a732f1679c4bf2e30.tar.gz llvm-3a9e07b1e7f4718a0e117f3a732f1679c4bf2e30.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.cpp | 2 |
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; } |