blob: 2266c3e429c6583c05e41238bc28cdd234e70bd6 [file] [log] [blame]
Chris Lattner24943d22010-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
10#include "lldb/Breakpoint/StoppointCallbackContext.h"
11
12// C Includes
13// C++ Includes
14// Other libraries and framework includes
15// Project includes
16
17using namespace lldb_private;
18
19StoppointCallbackContext::StoppointCallbackContext() :
20 event (NULL),
Greg Claytonf4124de2012-02-21 00:09:25 +000021 exe_ctx_ref (),
22 is_synchronous (false)
Chris Lattner24943d22010-06-08 16:52:24 +000023{
24}
25
Greg Claytonf4124de2012-02-21 00:09:25 +000026StoppointCallbackContext::StoppointCallbackContext(Event *e, const ExecutionContext &exe_ctx, bool synchronously) :
Chris Lattner24943d22010-06-08 16:52:24 +000027 event (e),
Greg Claytonf4124de2012-02-21 00:09:25 +000028 exe_ctx_ref (exe_ctx),
Chris Lattner24943d22010-06-08 16:52:24 +000029 is_synchronous(synchronously)
30{
31}
32
33void
34StoppointCallbackContext::Clear()
35{
36 event = NULL;
Greg Claytonf4124de2012-02-21 00:09:25 +000037 exe_ctx_ref.Clear();
Chris Lattner24943d22010-06-08 16:52:24 +000038 is_synchronous = false;
39}