HRESULT ManagedDebugger::GetStackTrace(ICorDebugThread *pThread, int startFrame, int levels, std::vector<StackFrame> &stackFrames, int &totalFrames)
{
HRESULT Status;
- std::stringstream ss;
DWORD threadId = 0;
pThread->GetID(&threadId);
{
HRESULT Status;
- std::stringstream ss;
+ std::ostringstream ss;
if (b.verified)
{
static std::string AddrToString(uint64_t addr)
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "0x" << std::setw(2 * sizeof(void*)) << std::setfill('0') << std::hex << addr;
return ss.str();
}
{
HRESULT Status;
- std::stringstream ss;
+ std::ostringstream ss;
if (!stackFrame.source.IsNull())
{
HRESULT MIProtocol::PrintFrames(int threadId, std::string &output, int lowFrame, int highFrame)
{
HRESULT Status;
- std::stringstream ss;
+ std::ostringstream ss;
int totalFrames = 0;
std::vector<StackFrame> stackFrames;
HRESULT Status;
- std::stringstream ss;
+ std::ostringstream ss;
ss << "variables=[";
const char *sep = "";
static void PrintVar(const std::string &varobjName, Variable &v, int threadId, int print_values, std::string &output)
{
- std::stringstream ss;
+ std::ostringstream ss;
std::string editable = "noneditable";
void MIProtocol::PrintChildren(std::vector<Variable> &children, int threadId, int print_values, bool has_more, std::string &output)
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "numchild=\"" << children.size() << "\"";
if (children.empty())
{
case ModuleNew:
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "id=\"{" << event.module.id << "}\","
<< "target-name=\"" << MIProtocol::EscapeMIValue(event.module.path) << "\","
<< "host-name=\"" << MIProtocol::EscapeMIValue(event.module.path) << "\","
std::vector<Thread> threads;
IfFailRet(m_debugger->GetThreads(threads));
- std::stringstream ss;
+ std::ostringstream ss;
ss << "threads=[";
if (args.at(0) == "--mda")
i = 2;
- std::stringstream ss;
+ std::ostringstream ss;
const char *sep = "";
ss << "bkpt=[";
for (; i < args.size(); i++)
IfFailRet(pMDImport->GetScopeProps(nullptr, 0, nullptr, &mvid));
- std::stringstream ss;
+ std::ostringstream ss;
ss << std::hex
<< std::setfill('0') << std::setw(8) << mvid.Data1 << "-"
<< std::setfill('0') << std::setw(4) << mvid.Data2 << "-"
return name;
}
- std::stringstream ss;
+ std::ostringstream ss;
ss << name.substr(0, offset);
ss << "<";
const char *sep = "";
//ELEMENT_TYPE_R8_HFA = 0x07 | ELEMENT_TYPE_MODIFIER, // used only internally for R8 HFA types
default:
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "(Unhandled CorElementType: 0x" << std::hex << corElemType << ")";
elementType = ss.str();
}
case ELEMENT_TYPE_VALUETYPE:
case ELEMENT_TYPE_CLASS:
{
- std::stringstream ss;
+ std::ostringstream ss;
//Defaults in case we fail...
elementType = (corElemType == ELEMENT_TYPE_VALUETYPE) ? "struct" : "class";
return S_OK;
case ELEMENT_TYPE_ARRAY:
{
- std::stringstream ss;
+ std::ostringstream ss;
ULONG32 rank = 0;
pType->GetRank(&rank);
ss << "[";
if (methodGenericsCount > 0)
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << funcName << '`' << methodGenericsCount;
funcName = ss.str();
}
std::string typeName;
std::string methodName;
- std::stringstream ss;
+ std::ostringstream ss;
IfFailRet(GetTypeAndMethod(pFrame, typeName, methodName));
if (!typeName.empty())
ss << typeName << ".";
}
pMD->CloseEnum(fEnum);
- std::stringstream ss;
+ std::ostringstream ss;
const char *sep = "";
//Now that we know the underlying enum type, let's decode the enum variable into OR-ed, human readable enum contants
ULONG32 cElements;
IfFailRet(pArrayValue->GetCount(&cElements));
- std::stringstream ss;
+ std::ostringstream ss;
ss << "{";
std::string elementType;
EscapeString(raw_str, '"');
- std::stringstream ss;
+ std::ostringstream ss;
ss << "\"" << raw_str << "\"";
output = ss.str();
return S_OK;
return PrintEnumValue(pValue, rgbValue, output);
}
- std::stringstream ss;
+ std::ostringstream ss;
switch (corElemType)
{
if (ind_size < 1 || base.size() != ind_size)
return std::string();
- std::stringstream ss;
+ std::ostringstream ss;
const char *sep = "";
for (size_t i = 0; i < ind_size; ++i)
{
}
if(paramName.empty())
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "param_" << i;
paramName = ss.str();
}
}
else
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "Failed command '" << command << "' : "
<< "0x" << std::setw(8) << std::setfill('0') << std::hex << Status;
response["success"] = false;