[Lldb-commits] [lldb] d35702e - Fix LLDB build on old Linux kernels
Walter Erquinigo via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 29 09:42:57 PDT 2021
Author: Walter Erquinigo
Date: 2021-09-29T09:42:32-07:00
New Revision: d35702efe73010409c75b1f1b64f205cc3b2f6d3
URL: https://github.com/llvm/llvm-project/commit/d35702efe73010409c75b1f1b64f205cc3b2f6d3
DIFF: https://github.com/llvm/llvm-project/commit/d35702efe73010409c75b1f1b64f205cc3b2f6d3.diff
LOG: Fix LLDB build on old Linux kernels
Usage of aux_size is guarded against elsewhere in this file, but is missing here.
Reviewed By: wallace
Differential Revision: https://reviews.llvm.org/D110269
Original Author: calebzulawski
Added:
Modified:
lldb/source/Plugins/Process/Linux/IntelPTManager.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/Linux/IntelPTManager.cpp b/lldb/source/Plugins/Process/Linux/IntelPTManager.cpp
index 0bd48933d4d3e..c5575fb30c98a 100644
--- a/lldb/source/Plugins/Process/Linux/IntelPTManager.cpp
+++ b/lldb/source/Plugins/Process/Linux/IntelPTManager.cpp
@@ -145,7 +145,11 @@ static Error CheckPsbPeriod(size_t psb_period) {
}
size_t IntelPTThreadTrace::GetTraceBufferSize() const {
+#ifndef PERF_ATTR_SIZE_VER5
+ llvm_unreachable("Intel PT Linux perf event not supported");
+#else
return m_mmap_meta->aux_size;
+#endif
}
static Expected<uint64_t>
More information about the lldb-commits
mailing list