[Lldb-commits] [lldb] [LLDB][LoongArch] Fix build errors and extend watchpoint numbers (PR #126020)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 6 00:31:37 PST 2025
================
@@ -36,9 +36,32 @@
0xa03 /* LoongArch Advanced SIMD eXtension registers */
#endif
+#ifndef NT_LOONGARCH_HW_BREAK
+#define NT_LOONGARCH_HW_BREAK 0xa05 /* LoongArch hardware breakpoint registers */
+#endif
+
+#ifndef NT_LOONGARCH_HW_WATCH
+#define NT_LOONGARCH_HW_WATCH 0xa06 /* LoongArch hardware watchpoint registers */
+#endif
+
#define REG_CONTEXT_SIZE \
(GetGPRSize() + GetFPRSize() + sizeof(m_lsx) + sizeof(m_lasx))
+/*
+ * In order to avoid undefined or redefined error, just add a new struct
+ * loongarch_user_watch_state in LLDB which is same with the uapi struct
+ * user_watch_state_v2.
+ */
----------------
wangleiat wrote:
https://llvm.org/docs/CodingStandards.html#comment-formatting
In general, prefer C++-style comments // .
https://github.com/llvm/llvm-project/pull/126020
More information about the lldb-commits
mailing list