Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:53

0001 //===-- InstrumentationRuntimeStopInfo.h ------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_TARGET_INSTRUMENTATIONRUNTIMESTOPINFO_H
0010 #define LLDB_TARGET_INSTRUMENTATIONRUNTIMESTOPINFO_H
0011 
0012 #include <string>
0013 
0014 #include "lldb/Target/StopInfo.h"
0015 #include "lldb/Utility/StructuredData.h"
0016 
0017 namespace lldb_private {
0018 
0019 class InstrumentationRuntimeStopInfo : public StopInfo {
0020 public:
0021   ~InstrumentationRuntimeStopInfo() override = default;
0022 
0023   lldb::StopReason GetStopReason() const override {
0024     return lldb::eStopReasonInstrumentation;
0025   }
0026 
0027   const char *GetDescription() override;
0028 
0029   bool DoShouldNotify(Event *event_ptr) override { return true; }
0030 
0031   static lldb::StopInfoSP CreateStopReasonWithInstrumentationData(
0032       Thread &thread, std::string description,
0033       StructuredData::ObjectSP additional_data);
0034 
0035 private:
0036   InstrumentationRuntimeStopInfo(Thread &thread, std::string description,
0037                                  StructuredData::ObjectSP additional_data);
0038 };
0039 
0040 } // namespace lldb_private
0041 
0042 #endif // LLDB_TARGET_INSTRUMENTATIONRUNTIMESTOPINFO_H