blob: 584bf0060a4a52ff52e1eed1acf357bd49a5df46 [file] [log] [blame]
Chris Lattner30fdc8d2010-06-08 16:52:24 +00001//===-- StoppointCallbackContext.cpp ----------------------------*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Chris Lattner30fdc8d2010-06-08 16:52:24 +00006//
7//===----------------------------------------------------------------------===//
8
Eugene Zelenko16fd7512015-10-30 18:50:12 +00009#include "lldb/Breakpoint/StoppointCallbackContext.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000010
11using namespace lldb_private;
12
Kate Stoneb9c1b512016-09-06 20:57:50 +000013StoppointCallbackContext::StoppointCallbackContext()
14 : event(nullptr), exe_ctx_ref(), is_synchronous(false) {}
Chris Lattner30fdc8d2010-06-08 16:52:24 +000015
Kate Stoneb9c1b512016-09-06 20:57:50 +000016StoppointCallbackContext::StoppointCallbackContext(
17 Event *e, const ExecutionContext &exe_ctx, bool synchronously)
18 : event(e), exe_ctx_ref(exe_ctx), is_synchronous(synchronously) {}
Chris Lattner30fdc8d2010-06-08 16:52:24 +000019
Kate Stoneb9c1b512016-09-06 20:57:50 +000020void StoppointCallbackContext::Clear() {
21 event = nullptr;
22 exe_ctx_ref.Clear();
23 is_synchronous = false;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000024}