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 #include "lldb/Breakpoint/StoppointCallbackContext.h" 11 12 using namespace lldb_private; 13 StoppointCallbackContext()14StoppointCallbackContext::StoppointCallbackContext() 15 : event(nullptr), exe_ctx_ref(), is_synchronous(false) {} 16 StoppointCallbackContext(Event * e,const ExecutionContext & exe_ctx,bool synchronously)17StoppointCallbackContext::StoppointCallbackContext( 18 Event *e, const ExecutionContext &exe_ctx, bool synchronously) 19 : event(e), exe_ctx_ref(exe_ctx), is_synchronous(synchronously) {} 20 Clear()21void StoppointCallbackContext::Clear() { 22 event = nullptr; 23 exe_ctx_ref.Clear(); 24 is_synchronous = false; 25 } 26