2014-05-16 18:51:01 +08:00
|
|
|
//===-- MICmnLLDBProxySBValue.h ---------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Third Party Headers:
|
2015-01-20 08:04:26 +08:00
|
|
|
#include "lldb/API/SBValue.h"
|
2014-05-16 18:51:01 +08:00
|
|
|
|
|
|
|
// In-house headers:
|
|
|
|
#include "MIDataTypes.h"
|
|
|
|
|
|
|
|
// Declerations:
|
|
|
|
class CMIUtilString;
|
|
|
|
|
|
|
|
//++ ============================================================================
|
2014-11-18 02:06:21 +08:00
|
|
|
// Details: MI proxy wrapper class to lldb::SBValue. The class provides functionality
|
|
|
|
// to assist in the use of SBValue's parculiar function usage.
|
|
|
|
// Gotchas: None.
|
|
|
|
// Authors: Illya Rudkin 03/04/2014.
|
|
|
|
// Changes: None.
|
2014-05-16 18:51:01 +08:00
|
|
|
//--
|
|
|
|
class CMICmnLLDBProxySBValue
|
|
|
|
{
|
2014-11-18 02:06:21 +08:00
|
|
|
// Statics:
|
|
|
|
public:
|
|
|
|
static bool GetValueAsSigned(const lldb::SBValue &vrValue, MIint64 &vwValue);
|
|
|
|
static bool GetValueAsUnsigned(const lldb::SBValue &vrValue, MIuint64 &vwValue);
|
|
|
|
static bool GetCString(const lldb::SBValue &vrValue, CMIUtilString &vwCString);
|
2014-05-16 18:51:01 +08:00
|
|
|
};
|