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), exe_ctx_ref(), is_synchronous(false) {}
20 
21 StoppointCallbackContext::StoppointCallbackContext(
22     Event *e, const ExecutionContext &exe_ctx, bool synchronously)
23     : event(e), exe_ctx_ref(exe_ctx), is_synchronous(synchronously) {}
24 
25 void StoppointCallbackContext::Clear() {
26   event = nullptr;
27   exe_ctx_ref.Clear();
28   is_synchronous = false;
29 }
30