diff --git a/gdb/nat/loongarch-hw-point.h b/gdb/nat/loongarch-hw-point.h index 3098752043a..3d3d2c1f4e5 100644 --- a/gdb/nat/loongarch-hw-point.h +++ b/gdb/nat/loongarch-hw-point.h @@ -33,8 +33,8 @@ Neither of these values may exceed the width of dr_changed_t measured in bits. */ -#define LOONGARCH_HBP_MAX_NUM 8 -#define LOONGARCH_HWP_MAX_NUM 8 +#define LOONGARCH_HBP_MAX_NUM 14 +#define LOONGARCH_HWP_MAX_NUM 14 /* The maximum length of a memory region that can be watched by one diff --git a/gdb/nat/loongarch-linux-hw-point.h b/gdb/nat/loongarch-linux-hw-point.h index 3efc9a7381f..d8b8feb638d 100644 --- a/gdb/nat/loongarch-linux-hw-point.h +++ b/gdb/nat/loongarch-linux-hw-point.h @@ -32,7 +32,7 @@ struct loongarch_user_watch_state { uint64_t mask; uint32_t ctrl; uint32_t pad; - } dbg_regs[8]; + } dbg_regs[14]; };