static bool HasSourceLocation(SymbolReader *symbolReader, mdMethodDef methodDef)
{
- HRESULT Status;
std::vector<SymbolReader::SequencePoint> points;
if (FAILED(symbolReader->GetSequencePoints(methodDef, points)))
return false;
mdMethodDef methodDef;
while(SUCCEEDED(pMD->EnumMethods(&fEnum, typeDef, &methodDef, 1, &numMethods)) && numMethods != 0)
{
- HRESULT hr;
mdTypeDef memTypeDef;
ULONG nameLen;
WCHAR szFunctionName[mdNameLen] = {0};
std::string &output,
Debugger::StepType stepType)
{
- HRESULT Status;
DWORD threadId = GetIntArg(args, "--thread", m_debugger->GetLastStoppedThreadId());
m_debugger->StepCommand(threadId, stepType);
output = "^running";
HRESULT MIProtocol::PrintFrameLocation(const StackFrame &stackFrame, std::string &output)
{
- HRESULT Status;
-
std::ostringstream ss;
if (!stackFrame.source.IsNull())
const bool printValues = true;
const bool printTypes = false;
- HRESULT Status;
-
std::ostringstream ss;
ss << "variables=[";
const char *sep = "";
void MIProtocol::EmitStoppedEvent(StoppedEvent event)
{
- HRESULT Status;
-
std::string frameLocation;
PrintFrameLocation(event.frame, frameLocation);
{ "break-insert", [this](const std::vector<std::string> &args, std::string &output) -> HRESULT {
std::string filename;
unsigned int linenum;
- ULONG32 id;
Breakpoint breakpoint;
if (ParseBreakpoint(args, filename, linenum)
&& SUCCEEDED(SetBreakpoint(filename, linenum, breakpoint)))
return S_OK;
}},
{ "var-create", [this](const std::vector<std::string> &args, std::string &output) -> HRESULT {
- HRESULT Status;
-
if (args.size() < 2)
{
output = "Command requires at least 2 arguments";
return CreateVar(threadId, level, varName, varExpr, output);
}},
{ "var-list-children", [this](const std::vector<std::string> &args_orig, std::string &output) -> HRESULT {
- HRESULT Status;
-
std::vector<std::string> args = args_orig;
int print_values = 0;
mdTypeDef typeDef;
IfFailRet(pClass->GetToken(&typeDef));
- HRESULT hr;
mdTypeDef memTypeDef;
ULONG nameLen;
DWORD flags;
ULONG nameLen = 0;
DWORD fieldAttr = 0;
WCHAR mdName[mdNameLen];
- WCHAR typeName[mdNameLen];
UVCP_CONSTANT pRawValue = NULL;
ULONG rawValueLength = 0;
if(SUCCEEDED(pMD->GetFieldProps(fieldDef, NULL, mdName, mdNameLen, &nameLen, &fieldAttr, NULL, NULL, NULL, &pRawValue, &rawValueLength)))
std::string elementType;
std::string arrayType;
- CorElementType corElemType;
ToRelease<ICorDebugType> pFirstParameter;
ToRelease<ICorDebugValue2> pValue2;
ToRelease<ICorDebugType> pType;
return E_FAIL;
*ppEvalResult = evalResult->Detach();
}
- catch (const std::future_error& e)
+ catch (const std::future_error&)
{
return E_FAIL;
}
// Get ToString method token
- mdTypeDef currentTypeDef;
ToRelease<ICorDebugClass> pClass;
ToRelease<ICorDebugValue2> pValue2;
ToRelease<ICorDebugType> pType;
if (result->GetPtr())
PrintValue(result->GetPtr(), output, escape);
}
- catch (const std::future_error& e)
+ catch (const std::future_error&)
{
}
cb(output);
void Variables::AddVariableReference(Variable &variable, uint64_t frameId, ICorDebugValue *value, ValueKind valueKind)
{
- HRESULT Status;
unsigned int numChild = 0;
GetNumChild(value, numChild, valueKind == ValueIsClass);
if (numChild == 0)