Author: Jacob Lalonde Date: 2025-05-29T11:20:05-07:00 New Revision: 159646cd39eb6451c8906a999965e04d2566882f
URL: https://github.com/llvm/llvm-project/commit/159646cd39eb6451c8906a999965e04d2566882f DIFF: https://github.com/llvm/llvm-project/commit/159646cd39eb6451c8906a999965e04d2566882f.diff LOG: [LLDB] Add ifndef to platform linux (#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. Values are from the [manpage](https://man7.org/linux/man-pages/man7/signal.7.html) Added: Modified: lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp Removed: ################################################################################ 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; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits