From 5ad3b800d5f91edb06cf16adc27da89325f2e76f Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 2 Dec 2012 15:17:43 -0500 Subject: [PATCH] Fix incorrect matching logic. - Would lead to the wrong type potentially being matched since name comparison would be skipped. --- src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp b/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp index 04f57608ee..2e29311615 100644 --- a/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp +++ b/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp @@ -1080,8 +1080,8 @@ DwarfImageDebugInfo::_EvaluateBaseTypeConstraints(DIEType* type, if (baseTypeOwnerEntry != NULL) { DwarfUtils::GetFullyQualifiedDIEName(baseTypeOwnerEntry, baseEntryName); - if (!baseEntryName.IsEmpty() && baseEntryName - != constraints.BaseTypeName()) + + if (baseEntryName != constraints.BaseTypeName()) return false; } }