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