LLDB mainline
InstrumentationRuntimeStopInfo.h
Go to the documentation of this file.
1//===-- InstrumentationRuntimeStopInfo.h ------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_TARGET_INSTRUMENTATIONRUNTIMESTOPINFO_H
10#define LLDB_TARGET_INSTRUMENTATIONRUNTIMESTOPINFO_H
11
12#include <string>
13
16
17namespace lldb_private {
18
20public:
21 ~InstrumentationRuntimeStopInfo() override = default;
22
26
27 std::optional<uint32_t>
28 GetSuggestedStackFrameIndex(bool inlined_stack) override;
29
30 const char *GetDescription() override;
31
32 bool DoShouldNotify(Event *event_ptr) override { return true; }
33
35 Thread &thread, std::string description,
36 StructuredData::ObjectSP additional_data);
37
38private:
39 InstrumentationRuntimeStopInfo(Thread &thread, std::string description,
40 StructuredData::ObjectSP additional_data);
41};
42
43} // namespace lldb_private
44
45#endif // LLDB_TARGET_INSTRUMENTATIONRUNTIMESTOPINFO_H
static lldb::StopInfoSP CreateStopReasonWithInstrumentationData(Thread &thread, std::string description, StructuredData::ObjectSP additional_data)
InstrumentationRuntimeStopInfo(Thread &thread, std::string description, StructuredData::ObjectSP additional_data)
std::optional< uint32_t > GetSuggestedStackFrameIndex(bool inlined_stack) override
This gives the StopInfo a chance to suggest a stack frame to select.
StopInfo(Thread &thread, uint64_t value)
Definition StopInfo.cpp:34
std::shared_ptr< Object > ObjectSP
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::StopInfo > StopInfoSP
StopReason
Thread stop reasons.
@ eStopReasonInstrumentation