blob: 35bd6bb7c8440cb67799e06a10cd77bf0e169b0d [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- SBCommandContext.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
Greg Clayton63094e02010-06-23 01:19:29 +000010#include "lldb/Core/Debugger.h"
Chris Lattner24943d22010-06-08 16:52:24 +000011#include "lldb/Interpreter/CommandReturnObject.h"
12
Eli Friedmand6ec8aa2010-06-09 07:37:52 +000013#include "lldb/API/SBCommandContext.h"
Chris Lattner24943d22010-06-08 16:52:24 +000014
15
16using namespace lldb;
17using namespace lldb_private;
18
19
Greg Clayton63094e02010-06-23 01:19:29 +000020SBCommandContext::SBCommandContext (Debugger *lldb_object) :
21 m_opaque (lldb_object)
Chris Lattner24943d22010-06-08 16:52:24 +000022{
23}
24
25SBCommandContext::~SBCommandContext ()
26{
27}
28
29bool
30SBCommandContext::IsValid () const
31{
Greg Clayton63094e02010-06-23 01:19:29 +000032 return m_opaque != NULL;
Chris Lattner24943d22010-06-08 16:52:24 +000033}
34