Improve tracing.

This commit is contained in:
Rene Gollent 2013-04-12 23:21:25 -04:00
parent 2298b5fc23
commit b607f92d4e

View File

@ -84,12 +84,18 @@ CStringValueNode::ResolvedLocationAndValue(ValueLoader* valueLoader,
ValuePieceLocation piece; ValuePieceLocation piece;
piece.SetToMemory(addressData.ToUInt64()); piece.SetToMemory(addressData.ToUInt64());
TRACE_LOCALS(" Address found: %#" B_PRIx64 "\n",
addressData.ToUInt64());
error = valueLoader->LoadStringValue(addressData, maxSize, valueData); error = valueLoader->LoadStringValue(addressData, maxSize, valueData);
if (error != B_OK) if (error != B_OK)
return error; return error;
piece.size = valueData.Length(); piece.size = valueData.Length();
TRACE_LOCALS(" String value found, length: %" B_PRIu64 "bytes\n",
piece.size);
ValueLocation* stringLocation = new(std::nothrow) ValueLocation( ValueLocation* stringLocation = new(std::nothrow) ValueLocation(
valueLoader->GetArchitecture()->IsBigEndian(), piece); valueLoader->GetArchitecture()->IsBigEndian(), piece);