LoongArch: ptrace: Expose hardware breakpoints to debuggers
authorQing Zhang <zhangqing@loongson.cn>
Sat, 25 Feb 2023 07:52:57 +0000 (15:52 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 25 Feb 2023 14:12:17 +0000 (22:12 +0800)
commit1a69f7a161a78aead07cd4b811d796950e892fa4
treec5fc4f8eacaf302b0ce9a14a400c77f28e25a3d6
parentedffa33c7bb5a73e90c754c7a497162b77d7c55f
LoongArch: ptrace: Expose hardware breakpoints to debuggers

Implement the regset-based ptrace interface that exposes hardware
breakpoints to user-space debuggers to query and set instruction and
data breakpoints.

Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/uapi/asm/ptrace.h
arch/loongarch/kernel/ptrace.c
include/uapi/linux/elf.h