1 //===-- StoppointCallbackContext.h ------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_StoppointCallbackContext_h_
11 #define liblldb_StoppointCallbackContext_h_
13 #include "lldb/Target/ExecutionContext.h"
14 #include "lldb/lldb-private.h"
16 namespace lldb_private {
18 //----------------------------------------------------------------------
19 /// @class StoppointCallbackContext StoppointCallbackContext.h
20 /// "lldb/Breakpoint/StoppointCallbackContext.h"
21 /// @brief Class holds the information that a breakpoint callback needs to
22 /// evaluate this stop.
23 //----------------------------------------------------------------------
25 //----------------------------------------------------------------------
27 /// When we hit a breakpoint we need to package up whatever information is
29 /// to evaluate breakpoint commands and conditions. This class is the container
32 //----------------------------------------------------------------------
34 class StoppointCallbackContext {
36 StoppointCallbackContext();
38 StoppointCallbackContext(Event *event, const ExecutionContext &exe_ctx,
39 bool synchronously = false);
41 //------------------------------------------------------------------
42 /// Clear the object's state.
44 /// Sets the event, process and thread to NULL, and the frame index to an
46 //------------------------------------------------------------------
49 //------------------------------------------------------------------
51 //------------------------------------------------------------------
52 Event *event; // This is the event, the callback can modify this to indicate
53 // the meaning of the breakpoint hit
55 exe_ctx_ref; // This tells us where we have stopped, what thread.
56 bool is_synchronous; // Is the callback being executed synchronously with the
58 // or asynchronously as the event is retrieved?
61 } // namespace lldb_private
63 #endif // liblldb_StoppointCallbackContext_h_