Add missing usage of `to_utf8()` instead of `convert.to_bytes()`
authorAndrey Okoshkin <a.okoshkin@samsung.com>
Wed, 7 Feb 2018 10:32:30 +0000 (13:32 +0300)
committerAndrey Okoshkin <a.okoshkin@samsung.com>
Wed, 7 Feb 2018 16:02:03 +0000 (19:02 +0300)
Evaluator::WalkStackVars() and SymbolReader::LoadSymbolsForPortablePDB() use
`to_utf8()` now.

src/debug/netcoredbg/symbolreader.cpp
src/debug/netcoredbg/valuewalk.cpp

index b3e5ab0b49c5cf285e2639ad6d49a0b58beb056e..9d0d0f4380a21bd159ff435a404fe56afe423c20 100644 (file)
@@ -101,7 +101,7 @@ HRESULT SymbolReader::LoadSymbolsForPortablePDB(
     std::string moduleName;
     if (!isInMemory && pModuleName != nullptr)
     {
-        moduleName = convert.to_bytes(pModuleName);
+        moduleName = to_utf8(pModuleName);
         szModuleName = moduleName.c_str();
     }
 
@@ -378,4 +378,4 @@ HRESULT SymbolReader::GetSequencePoints(mdMethodDef methodToken, std::vector<Seq
     }
 
     return E_FAIL;
-}
\ No newline at end of file
+}
index ed4107d7c26adb7bad282a96348351038559550e..8dad61d49393c2b8374495b8a4e69b324afbadca 100644 (file)
@@ -853,7 +853,7 @@ HRESULT Evaluator::WalkStackVars(ICorDebugFrame *pFrame, WalkStackVarsCallback c
                 {
                     WCHAR wParamName[mdNameLen] = W("\0");
                     pMD->GetParamProps(paramDef, NULL, NULL, wParamName, mdNameLen, &paramNameLen, NULL, NULL, NULL, NULL);
-                    paramName = convert.to_bytes(wParamName);
+                    paramName = to_utf8(wParamName);
                 }
             }
             if(paramName.empty())