Debugger: Consolidate memoryToHex{W,} in CDB helpers

Only one is really needed.

Change-Id: I43eb36336faa1f73a93f685fa60e518ee9225abb
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
hjk
2015-12-14 09:50:14 +01:00
committed by David Schulz
parent 55c77e4286
commit db2f271256
3 changed files with 4 additions and 17 deletions

View File

@@ -120,9 +120,9 @@ static StopReasonMap breakPointStopReasonParameters(PDEBUG_BREAKPOINT b)
if (CIDebugClient *client = ExtensionContext::instance().hookedClient()) {
IInterfacePointer<CIDebugDataSpaces> dataSpaces(client);
if (dataSpaces) {
const std::wstring memoryHex = memoryToHexW(dataSpaces.data(), memoryRange.first, memoryRange.second);
const std::string memoryHex = memoryToHex(dataSpaces.data(), memoryRange.first, memoryRange.second);
if (!memoryHex.empty())
rc.insert(StopReasonMapValue("memory", wStringToString(memoryHex)));
rc.insert(StopReasonMapValue("memory", memoryHex));
} // dataSpaces
} // client
return rc;