We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ff1a7 commit 18a8527Copy full SHA for 18a8527
lldb/source/Plugins/Process/Linux/IntelPTManager.cpp
@@ -542,7 +542,14 @@ IntelPTManager::GetBinaryData(const TraceGetBinaryDataRequest &request) const {
542
543
void IntelPTManager::ClearProcessTracing() { m_process_trace = None; }
544
545
-bool IntelPTManager::IsSupported() { return (bool)GetOSEventType(); }
+bool IntelPTManager::IsSupported() {
546
+ Expected<uint32_t> intel_pt_type = GetOSEventType();
547
+ if (!intel_pt_type) {
548
+ llvm::consumeError(intel_pt_type.takeError());
549
+ return false;
550
+ }
551
+ return true;
552
+}
553
554
bool IntelPTManager::IsProcessTracingEnabled() const {
555
return (bool)m_process_trace;
0 commit comments