blob: 9932843714f8a24508d834fb266033f22b2a05bf [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
18StoppointCallbackContext::StoppointCallbackContext() :
Eugene Zelenko16fd7512015-10-30 18:50:12 +000019 event (nullptr),
Greg Clayton1ac04c32012-02-21 00:09:25 +000020 exe_ctx_ref (),
21 is_synchronous (false)
Chris Lattner30fdc8d2010-06-08 16:52:24 +000022{
23}
24
Greg Clayton1ac04c32012-02-21 00:09:25 +000025StoppointCallbackContext::StoppointCallbackContext(Event *e, const ExecutionContext &exe_ctx, bool synchronously) :
Chris Lattner30fdc8d2010-06-08 16:52:24 +000026 event (e),
Greg Clayton1ac04c32012-02-21 00:09:25 +000027 exe_ctx_ref (exe_ctx),
Chris Lattner30fdc8d2010-06-08 16:52:24 +000028 is_synchronous(synchronously)
29{
30}
31
32void
33StoppointCallbackContext::Clear()
34{
Eugene Zelenko16fd7512015-10-30 18:50:12 +000035 event = nullptr;
Greg Clayton1ac04c32012-02-21 00:09:25 +000036 exe_ctx_ref.Clear();
Chris Lattner30fdc8d2010-06-08 16:52:24 +000037 is_synchronous = false;
38}