1 //===-- StoppointCallbackContext.cpp ----------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // C Includes
11 // C++ Includes
12 // Other libraries and framework includes
13 // Project includes
14 #include "lldb/Breakpoint/StoppointCallbackContext.h"
15 
16 using namespace lldb_private;
17 
18 StoppointCallbackContext::StoppointCallbackContext() :
19     event (nullptr),
20     exe_ctx_ref (),
21     is_synchronous (false)
22 {
23 }
24 
25 StoppointCallbackContext::StoppointCallbackContext(Event *e, const ExecutionContext &exe_ctx, bool synchronously) :
26     event (e),
27     exe_ctx_ref (exe_ctx),
28     is_synchronous(synchronously)
29 {
30 }
31 
32 void
33 StoppointCallbackContext::Clear()
34 {
35     event = nullptr;
36     exe_ctx_ref.Clear();
37     is_synchronous = false;
38 }
39