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"
|
|
|
|
|
2015-07-07 22:04:40 +08:00
|
|
|
// Declarations:
|
2014-05-16 18:51:01 +08:00
|
|
|
class CMIUtilString;
|
|
|
|
|
2016-09-07 04:57:50 +08:00
|
|
|
//++
|
|
|
|
//============================================================================
|
|
|
|
// Details: MI proxy wrapper class to lldb::SBValue. The class provides
|
|
|
|
// functionality
|
2015-07-07 22:04:40 +08:00
|
|
|
// to assist in the use of SBValue's particular function usage.
|
2014-05-16 18:51:01 +08:00
|
|
|
//--
|
2016-09-07 04:57:50 +08:00
|
|
|
class CMICmnLLDBProxySBValue {
|
|
|
|
// 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
|
|
|
};
|