HRESULT MIProtocol::SetBreakpointCondition(uint32_t id, const std::string &condition)
{
- HRESULT Status;
-
// For each file
for (auto &breakpointsIter : m_breakpoints)
{
return S_OK;
} },
{ "break-condition", [this](const std::vector<std::string> &args, std::string &output) -> HRESULT {
- HRESULT Status;
-
if (args.size() < 2)
{
output = "Command requires at least 2 arguments";
std::string &data,
std::string &errorText)
{
- HRESULT Status;
-
PrepareSymbolReader();
if (parseExpressionDelegate == nullptr)
HRESULT SymbolReader::EvalExpression(const std::string &expr, std::string &result, int *typeId, ICorDebugValue **ppValue, GetChildCallback cb)
{
- HRESULT Status;
-
PrepareSymbolReader();
if (evalExpressionDelegate == nullptr)
if (sysAllocStringLen == nullptr)
return nullptr;
auto wstr = to_utf16(str);
- BSTR bstr = sysAllocStringLen(0, wstr.size());
+ if (wstr.size() > UINT_MAX)
+ return nullptr;
+ BSTR bstr = sysAllocStringLen(0, (UINT)wstr.size());
if (sysStringLen(bstr) == 0)
return nullptr;
memmove(bstr, wstr.data(), wstr.size() * sizeof(decltype(wstr[0])));