[Lldb-commits] [lldb] [LLDB] Add ifndef to platform linux (PR #141971)
Jacob Lalonde via lldb-commits
lldb-commits at lists.llvm.org
Thu May 29 09:11:32 PDT 2025
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/141971
Another iteration of fixes for #141670. Platform linux can be used by other platforms, so we need to supply the signal values if they're not defined.
>From 0612b888a0dd0cda09fbaa89f5e68c15a1bc9e98 Mon Sep 17 00:00:00 2001
From: Jacob Lalonde <jalalonde at fb.com>
Date: Thu, 29 May 2025 09:10:09 -0700
Subject: [PATCH] Add ifndef to platform linux
---
.../Plugins/Platform/Linux/PlatformLinux.cpp | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
index cb60caf1cb422..dd6490c7141e5 100644
--- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
+++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
@@ -34,6 +34,20 @@
#define MAP_PRIVATE 2
#define MAP_ANON 0x20
+// For other platforms that use platform linux
+#ifndef SIGILL
+#define SIGILL 4
+#endif
+#ifndef SIGBUS
+#define SIGBUS 7
+#endif
+#ifndef SIGFPE
+#define SIGFPE 8
+#endif
+#ifndef SIGSEGV
+#define SIGSEGV 11
+#endif
+
using namespace lldb;
using namespace lldb_private;
using namespace lldb_private::platform_linux;
More information about the lldb-commits
mailing list