blob: 3d24eb78c455187425c869db56c31402ab712d93 [file] [log] [blame]
Chris Lattner30fdc8d2010-06-08 16:52:24 +00001//===-- 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
Chris Lattner30fdc8d2010-06-08 16:52:24 +000010// C Includes
11// C++ Includes
12// Other libraries and framework includes
13// Project includes
Eugene Zelenko16fd7512015-10-30 18:50:12 +000014#include "lldb/Breakpoint/StoppointCallbackContext.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000015
16using namespace lldb_private;
17
Kate Stoneb9c1b512016-09-06 20:57:50 +000018StoppointCallbackContext::StoppointCallbackContext()
19 : event(nullptr), exe_ctx_ref(), is_synchronous(false) {}
Chris Lattner30fdc8d2010-06-08 16:52:24 +000020
Kate Stoneb9c1b512016-09-06 20:57:50 +000021StoppointCallbackContext::StoppointCallbackContext(
22 Event *e, const ExecutionContext &exe_ctx, bool synchronously)
23 : event(e), exe_ctx_ref(exe_ctx), is_synchronous(synchronously) {}
Chris Lattner30fdc8d2010-06-08 16:52:24 +000024
Kate Stoneb9c1b512016-09-06 20:57:50 +000025void StoppointCallbackContext::Clear() {
26 event = nullptr;
27 exe_ctx_ref.Clear();
28 is_synchronous = false;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000029}