From ffe684b96c6425bfc5489c74e59df990d4b739c7 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 11 Jan 2018 22:30:51 -0500 Subject: [PATCH] Debugger: Fix type issue in BList handler. BListValueNode: - BList's item count member is an int32. However, when the handler was reading said variable, it was mistakenly reading the number of bytes corresponding to to the address size of the architecture instead.This would cause the read to fail, and consequently BList and/or BObjectList variables to not display their contents properly on x86-64. --- src/kits/debugger/value/value_nodes/BListValueNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/debugger/value/value_nodes/BListValueNode.cpp b/src/kits/debugger/value/value_nodes/BListValueNode.cpp index 9727e50c13..ea27594333 100644 --- a/src/kits/debugger/value/value_nodes/BListValueNode.cpp +++ b/src/kits/debugger/value/value_nodes/BListValueNode.cpp @@ -274,7 +274,7 @@ BListValueNode::ResolvedLocationAndValue(ValueLoader* valueLoader, fItemCountLocation = memberLocation->PieceAt(0).address; BVariant listSize; - error = valueLoader->LoadValue(memberLocation, valueType, + error = valueLoader->LoadValue(memberLocation, B_INT32_TYPE, false, listSize); if (error != B_OK) return error;