blob: 828ff18c433fdc31e748d92cd188690cff4ae317 [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
Eugene Zelenko16fd7512015-10-30 18:50:12 +000010#include "lldb/Breakpoint/StoppointCallbackContext.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000011
12using namespace lldb_private;
13
Kate Stoneb9c1b512016-09-06 20:57:50 +000014StoppointCallbackContext::StoppointCallbackContext()
15 : event(nullptr), exe_ctx_ref(), is_synchronous(false) {}
Chris Lattner30fdc8d2010-06-08 16:52:24 +000016
Kate Stoneb9c1b512016-09-06 20:57:50 +000017StoppointCallbackContext::StoppointCallbackContext(
18 Event *e, const ExecutionContext &exe_ctx, bool synchronously)
19 : event(e), exe_ctx_ref(exe_ctx), is_synchronous(synchronously) {}
Chris Lattner30fdc8d2010-06-08 16:52:24 +000020
Kate Stoneb9c1b512016-09-06 20:57:50 +000021void StoppointCallbackContext::Clear() {
22 event = nullptr;
23 exe_ctx_ref.Clear();
24 is_synchronous = false;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000025}