LLDB  mainline
StoppointCallbackContext.h
Go to the documentation of this file.
1 //===-- StoppointCallbackContext.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_BREAKPOINT_STOPPOINTCALLBACKCONTEXT_H
10 #define LLDB_BREAKPOINT_STOPPOINTCALLBACKCONTEXT_H
11 
13 #include "lldb/lldb-private.h"
14 
15 namespace lldb_private {
16 
17 /// \class StoppointCallbackContext StoppointCallbackContext.h
18 /// "lldb/Breakpoint/StoppointCallbackContext.h" Class holds the information
19 /// that a breakpoint callback needs to evaluate this stop.
20 
21 /// General Outline:
22 /// When we hit a breakpoint we need to package up whatever information is
23 /// needed to evaluate breakpoint commands and conditions. This class is the
24 /// container of that information.
25 
27 public:
29 
31  bool synchronously = false);
32 
33  /// Clear the object's state.
34  ///
35  /// Sets the event, process and thread to NULL, and the frame index to an
36  /// invalid value.
37  void Clear();
38 
39  // Member variables
40  Event *event = nullptr; // This is the event, the callback can modify this to
41  // indicate the meaning of the breakpoint hit
43  exe_ctx_ref; // This tells us where we have stopped, what thread.
45  false; // Is the callback being executed synchronously with the
46  // breakpoint,
47  // or asynchronously as the event is retrieved?
48 };
49 
50 } // namespace lldb_private
51 
52 #endif // LLDB_BREAKPOINT_STOPPOINTCALLBACKCONTEXT_H
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
lldb_private::StoppointCallbackContext
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
Definition: StoppointCallbackContext.h:26
lldb_private::Event
Definition: Event.h:180
lldb_private::StoppointCallbackContext::Clear
void Clear()
Clear the object's state.
Definition: StoppointCallbackContext.cpp:19
lldb_private::StoppointCallbackContext::exe_ctx_ref
ExecutionContextRef exe_ctx_ref
Definition: StoppointCallbackContext.h:43
lldb_private::StoppointCallbackContext::is_synchronous
bool is_synchronous
Definition: StoppointCallbackContext.h:44
lldb-private.h
lldb_private::StoppointCallbackContext::event
Event * event
Definition: StoppointCallbackContext.h:40
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::ExecutionContextRef
Execution context objects refer to objects in the execution of the program that is being debugged.
Definition: ExecutionContext.h:72
ExecutionContext.h
lldb_private::StoppointCallbackContext::StoppointCallbackContext
StoppointCallbackContext()
Definition: StoppointCallbackContext.cpp:13