History

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.

Qing Zhang committed 3 years ago

Commit 1a69f7a1 parent edffa333 files · +413 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/elf.h+2−0
@@ -444,6 +444,8 @@ typedef struct elf64_shdr { · 443 unmodified lines
444444 #define NT_LOONGARCH_LSX 0xa02 /* LoongArch Loongson SIMD Extension registers */
445445 #define NT_LOONGARCH_LASX 0xa03 /* LoongArch Loongson Advanced SIMD Extension registers */
446446 #define NT_LOONGARCH_LBT 0xa04 /* LoongArch Loongson Binary Translation registers */
447+#define NT_LOONGARCH_HW_BREAK 0xa05 /* LoongArch hardware breakpoint registers */
448+#define NT_LOONGARCH_HW_WATCH 0xa06 /* LoongArch hardware watchpoint registers */
447449
448450 /* Note types with note name "GNU" */
449451 #define NT_GNU_PROPERTY_TYPE_0 5