diff options
| author | Hui Li <lihui@loongson.cn> | 2022-12-08 19:59:11 +0800 |
|---|---|---|
| committer | Weining Lu <luweining@loongson.cn> | 2022-12-08 19:59:39 +0800 |
| commit | f0f33957d03444eefc8264cbfe7f5cfe7bee6f3d (patch) | |
| tree | 214c4446cb08169b1f17c5e39f1724004cec93a3 /lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.cpp | |
| parent | 2bfef8d5370fbe9d500441b2e1e3fe4a4d68deec (diff) | |
[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/Utility/NativeProcessSoftwareSingleStep.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.cpp b/lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.cpp index b8bf30f3b6de..6bf8a0dc28b2 100644 --- a/lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.cpp +++ b/lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.cpp @@ -168,7 +168,7 @@ Status NativeProcessSoftwareSingleStep::SetupSoftwareSingleStepping( size_hint = 4; } } else if (arch.IsMIPS() || arch.GetTriple().isPPC64() || - arch.GetTriple().isRISCV()) + arch.GetTriple().isRISCV() || arch.GetTriple().isLoongArch()) size_hint = 4; error = process.SetBreakpoint(next_pc, size_hint, /*hardware=*/false); |
