forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user