LLDB mainline
MSVCRTCFrameRecognizer.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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_PLUGINS_DYNAMICLOADER_WINDOWS_MSVCRTCFRAMERECOGNIZER_H
10#define LLDB_PLUGINS_DYNAMICLOADER_WINDOWS_MSVCRTCFRAMERECOGNIZER_H
11
13
14namespace lldb_private {
15
16class Target;
17
18/// Registers the MSVC run-time check failure frame recognizer with the target.
20
21/// Recognized stack frame for an MSVC _RTC failure. Carries the human-readable
22/// stop description extracted from failwithmessage's \c msg parameter.
24public:
25 MSVCRTCRecognizedFrame(std::string desc) { m_stop_desc = std::move(desc); }
26};
27
28/// Recognizes the MSVC CRT's \c failwithmessage frame, extracts the
29/// run-time check failure message from the \c msg parameter, and returns it
30/// as the thread stop description.
32public:
33 std::string GetName() override {
34 return "MSVC Run-Time Check Failure Recognizer";
35 }
37 RecognizeFrame(lldb::StackFrameSP frame_sp) override;
38};
39
40} // namespace lldb_private
41
42#endif // LLDB_PLUGINS_DYNAMICLOADER_WINDOWS_MSVCRTCFRAMERECOGNIZER_H
Recognizes the MSVC CRT's failwithmessage frame, extracts the run-time check failure message from the...
lldb::RecognizedStackFrameSP RecognizeFrame(lldb::StackFrameSP frame_sp) override
This class provides extra information about a stack frame that was provided by a specific stack frame...
A base class for frame recognizers.
A class that represents a running process on the host machine.
void RegisterMSVCRTCFrameRecognizer(Target &target)
Registers the MSVC run-time check failure frame recognizer with the target.
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
std::shared_ptr< lldb_private::RecognizedStackFrame > RecognizedStackFrameSP