[Lldb-commits] [PATCH] D110269: Fix LLDB build on old Linux kernels

Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 29 09:43:05 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd35702efe730: Fix LLDB build on old Linux kernels (authored by Walter Erquinigo <wallace at fb.com>).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110269/new/

https://reviews.llvm.org/D110269

Files:
  lldb/source/Plugins/Process/Linux/IntelPTManager.cpp


Index: lldb/source/Plugins/Process/Linux/IntelPTManager.cpp
===================================================================
--- lldb/source/Plugins/Process/Linux/IntelPTManager.cpp
+++ lldb/source/Plugins/Process/Linux/IntelPTManager.cpp
@@ -145,7 +145,11 @@
 }
 
 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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110269.375931.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210929/0606e6e4/attachment.bin>


More information about the lldb-commits mailing list