[Lldb-commits] [lldb] [LLDB][MIPS] Fix signal SIGBUS number mismatch error on mips target (PR #132688)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 31 04:04:19 PDT 2025
================
@@ -8,7 +8,10 @@
#include "LinuxSignals.h"
-#ifdef __linux__
+// Now, because we do not support mips debugging, if we compile LLVM on mips
+// target, would report error `static assertion failed:Value mismatch for signal
+// number SIGBUS`, so add this condition to avoid error.
----------------
labath wrote:
```suggestion
// mips-linux debugging is not supported and mips uses different numbers for some signals (e.g. SIGBUS) on linux, so we skip the static checks below. The definitions here can be used for debugging non-mips targets on a mips-hosted lldb.
```
https://github.com/llvm/llvm-project/pull/132688
More information about the lldb-commits
mailing list