forked from qt-creator/qt-creator
Debugger: Use hex instead of base64 encoding
... for transport of memory contents in CDB machinery. Change-Id: Id29aa2a3008ec7e4fc9494ca9e26c4057f895663 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -580,12 +580,12 @@ std::string gdbmiRegisters(CIDebugRegisters *regs,
|
||||
return str.str();
|
||||
}
|
||||
|
||||
std::string memoryToBase64(CIDebugDataSpaces *ds, ULONG64 address, ULONG length,
|
||||
std::string memoryToHex(CIDebugDataSpaces *ds, ULONG64 address, ULONG length,
|
||||
std::string *errorMessage /* = 0 */)
|
||||
{
|
||||
if (const unsigned char *buffer = SymbolGroupValue::readMemory(ds, address, length, errorMessage)) {
|
||||
std::ostringstream str;
|
||||
base64Encode(str, buffer, length);
|
||||
hexEncode(str, buffer, length);
|
||||
delete [] buffer;
|
||||
return str.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user