[Lldb-commits] [lldb] c0df412 - [lldb] Fix build on older FreeBSD
Brooks Davis via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 4 13:21:56 PDT 2023
Author: Brooks Davis
Date: 2023-04-04T21:21:45+01:00
New Revision: c0df412ad2a5236a66ff1b608aeddc744b563e79
URL: https://github.com/llvm/llvm-project/commit/c0df412ad2a5236a66ff1b608aeddc744b563e79
DIFF: https://github.com/llvm/llvm-project/commit/c0df412ad2a5236a66ff1b608aeddc744b563e79.diff
LOG: [lldb] Fix build on older FreeBSD
Commit 392d9eb03af5a1adac66a86939351b22b3e73495 added a dependency on
FPE_FLTIDO which was only defined in FreeBSD main on May 19, 2022 and
is not in all supported releases. Just define it if it's missing as we
could use a debugger compiled on an older system to debug a newer one.
Reviewed by: DavidSpickett, emaste, dim
Differential Revision: https://reviews.llvm.org/D147300
Added:
Modified:
lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp b/lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
index f436de0d033e..ebf197339446 100644
--- a/lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
+++ b/lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
@@ -11,6 +11,10 @@
#ifdef __FreeBSD__
#include <csignal>
+#ifndef FPE_FLTIDO
+#define FPE_FLTIDO 9
+#endif
+
#define ADD_SIGCODE(signal_name, signal_value, code_name, code_value, ...) \
static_assert(signal_name == signal_value, \
"Value mismatch for signal number " #signal_name); \
More information about the lldb-commits
mailing list