[LLDB] Add LoongArch software breakpoint trap opcode
authorTeizhu Yang <yangtiezhu@loongson.cn>
Thu, 10 Nov 2022 05:48:22 +0000 (13:48 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 10 Nov 2022 05:49:11 +0000 (13:49 +0800)
commit97842fcba9e3a3fa4db52a47215641f9141fea63
tree843f51f1ee13d91f7899ce90585c5ee7d2b4bf50
parent49b07fb51975e108f925a59d0dc6866ac54485b0
[LLDB] Add LoongArch software breakpoint trap opcode

Use `break 0x5` for LoongArch software breakpoint traps.
The magic number 0x5 means `BRK_SSTEPBP` as defined in
the kernel header `asm/break.h` on LoongArch.

Reviewed By: SixWeining, xen0n

Differential Revision: https://reviews.llvm.org/D137519
lldb/source/Host/common/NativeProcessProtocol.cpp
lldb/source/Target/Platform.cpp