summaryrefslogtreecommitdiffstats
path: root/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lldb-mi/MICmnLLDBProxySBValue.cpp')
-rw-r--r--tools/lldb-mi/MICmnLLDBProxySBValue.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/tools/lldb-mi/MICmnLLDBProxySBValue.cpp b/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
index 6a07f20..b60ce1a 100644
--- a/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
+++ b/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
@@ -7,18 +7,6 @@
//
//===----------------------------------------------------------------------===//
-//++
-// File: MICmnLLDBProxySBValue.cpp
-//
-// Overview: CMICmnLLDBProxySBValue implementation.
-//
-// Environment: Compilers: Visual C++ 12.
-// gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
-// Libraries: See MIReadmetxt.
-//
-// Copyright: None.
-//--
-
#include <stdlib.h>
// Third Party Headers:
@@ -115,11 +103,11 @@ bool
CMICmnLLDBProxySBValue::GetCString(const lldb::SBValue &vrValue, CMIUtilString &vwCString)
{
lldb::SBValue &rValue = const_cast<lldb::SBValue &>(vrValue);
- const MIchar *pCType = rValue.GetTypeName();
+ const char *pCType = rValue.GetTypeName();
if (pCType == nullptr)
return MIstatus::failure;
- const MIchar *pType = "unsigned char *";
+ const char *pType = "unsigned char *";
if (!CMIUtilString::Compare(pCType, pType))
return MIstatus::failure;
@@ -132,7 +120,7 @@ CMICmnLLDBProxySBValue::GetCString(const lldb::SBValue &vrValue, CMIUtilString &
lldb::SBProcess sbProcess = rSessionInfo.GetProcess();
MIuint nBufferSize = 64;
bool bNeedResize = false;
- MIchar *pBuffer = static_cast<MIchar *>(::malloc(nBufferSize));
+ char *pBuffer = static_cast<char *>(::malloc(nBufferSize));
do
{
lldb::SBError error;
@@ -141,7 +129,7 @@ CMICmnLLDBProxySBValue::GetCString(const lldb::SBValue &vrValue, CMIUtilString &
{
bNeedResize = true;
nBufferSize = nBufferSize << 1;
- pBuffer = static_cast<MIchar *>(::realloc(pBuffer, nBufferSize));
+ pBuffer = static_cast<char *>(::realloc(pBuffer, nBufferSize));
}
else
bNeedResize = false;
OpenPOWER on IntegriCloud