Skip to content

Commit

Permalink
Make string size available in value location.
Browse files Browse the repository at this point in the history
  • Loading branch information
anevilyak committed Dec 9, 2012
1 parent 2c32e74 commit 84a00bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/apps/debugger/value/value_nodes/CStringValueNode.cpp
Expand Up @@ -84,6 +84,12 @@ CStringValueNode::ResolvedLocationAndValue(ValueLoader* valueLoader,
ValuePieceLocation piece;
piece.SetToMemory(addressData.ToUInt64());

error = valueLoader->LoadStringValue(addressData, maxSize, valueData);
if (error != B_OK)
return error;

piece.size = valueData.Length();

ValueLocation* stringLocation = new(std::nothrow) ValueLocation(
valueLoader->GetArchitecture()->IsBigEndian(), piece);

Expand Down

0 comments on commit 84a00bf

Please sign in to comment.