From b607f92d4ec6f4848f5f7ab9e450eadf765daf3a Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Fri, 12 Apr 2013 23:21:25 -0400 Subject: [PATCH] Improve tracing. --- src/apps/debugger/value/value_nodes/CStringValueNode.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/apps/debugger/value/value_nodes/CStringValueNode.cpp b/src/apps/debugger/value/value_nodes/CStringValueNode.cpp index f3e4a09792..65cd7f79d9 100644 --- a/src/apps/debugger/value/value_nodes/CStringValueNode.cpp +++ b/src/apps/debugger/value/value_nodes/CStringValueNode.cpp @@ -84,12 +84,18 @@ CStringValueNode::ResolvedLocationAndValue(ValueLoader* valueLoader, ValuePieceLocation piece; piece.SetToMemory(addressData.ToUInt64()); + TRACE_LOCALS(" Address found: %#" B_PRIx64 "\n", + addressData.ToUInt64()); + error = valueLoader->LoadStringValue(addressData, maxSize, valueData); if (error != B_OK) return error; piece.size = valueData.Length(); + TRACE_LOCALS(" String value found, length: %" B_PRIu64 "bytes\n", + piece.size); + ValueLocation* stringLocation = new(std::nothrow) ValueLocation( valueLoader->GetArchitecture()->IsBigEndian(), piece);