LLDB mainline
VerboseTrapFrameRecognizer.h
Go to the documentation of this file.
1//===-- VerboseTrapFrameRecognizer.h --------------------------------------===//
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_SOURCE_PLUGINS_LANGUAGERUNTIME_C_PLUS_PLUS_VERBOSETRAPFRAMERECOGNIZER_H
10#define LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_C_PLUS_PLUS_VERBOSETRAPFRAMERECOGNIZER_H
11
13
14namespace lldb_private {
15
17
18/// Holds the stack frame that caused the Verbose trap and the inlined stop
19/// reason message.
21public:
23 std::string stop_desc);
24
26
27private:
29};
30
31/// When a thread stops, it checks the current frame contains a
32/// Verbose Trap diagnostic. If so, it returns a \a
33/// VerboseTrapRecognizedStackFrame holding the diagnostic a stop reason
34/// description with and the parent frame as the most relavant frame.
36public:
37 std::string GetName() override {
38 return "Verbose Trap StackFrame Recognizer";
39 }
40
42 RecognizeFrame(lldb::StackFrameSP frame) override;
43};
44
45} // namespace lldb_private
46
47#endif // LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_C_PLUS_PLUS_VERBOSETRAPFRAMERECOGNIZER_H
A plug-in interface definition class for debugging a process.
Definition Process.h:354
This class provides extra information about a stack frame that was provided by a specific stack frame...
A base class for frame recognizers.
When a thread stops, it checks the current frame contains a Verbose Trap diagnostic.
lldb::RecognizedStackFrameSP RecognizeFrame(lldb::StackFrameSP frame) override
VerboseTrapRecognizedStackFrame(lldb::StackFrameSP most_relevant_frame_sp, std::string stop_desc)
A class that represents a running process on the host machine.
void RegisterVerboseTrapFrameRecognizer(Process &process)
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
std::shared_ptr< lldb_private::RecognizedStackFrame > RecognizedStackFrameSP