blob: da4d9e3cc5a07d12a805c8b47c446143a5ca29ef [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 Clayton63094e02010-06-23 01:19:29 +000021 exe_ctx()
Chris Lattner24943d22010-06-08 16:52:24 +000022{
23}
24
25StoppointCallbackContext::StoppointCallbackContext(Event *e, Process* p, Thread *t, StackFrame *f, bool synchronously) :
26 event (e),
Greg Clayton63094e02010-06-23 01:19:29 +000027 exe_ctx (p, t, f),
Chris Lattner24943d22010-06-08 16:52:24 +000028 is_synchronous(synchronously)
29{
30}
31
32void
33StoppointCallbackContext::Clear()
34{
35 event = NULL;
Greg Clayton63094e02010-06-23 01:19:29 +000036 exe_ctx.Clear();
Chris Lattner24943d22010-06-08 16:52:24 +000037 is_synchronous = false;
38}