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

Caleb Zulawski via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 22 10:15:08 PDT 2021


calebzulawski created this revision.
calebzulawski added a reviewer: wallace.
calebzulawski added a project: LLDB.
Herald added a subscriber: JDevlieghere.
calebzulawski requested review of this revision.
Herald added a subscriber: lldb-commits.

Usage of aux_size is guarded against elsewhere in this file, but is missing here.


Repository:
  rG LLVM Github Monorepo

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.374280.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210922/2a2c8773/attachment.bin>


More information about the lldb-commits mailing list