From d75e3d6c23b7983e3820f35226eac22e69f0fdbb Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 12 Oct 2009 03:17:17 +0000 Subject: [PATCH] Ignore unnamed function parameters in the stack frame. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33542 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp b/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp index 0f68e345a4..7f466258fb 100644 --- a/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp +++ b/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp @@ -537,9 +537,12 @@ DwarfImageDebugInfo::CreateFrame(Image* image, // create function parameter objects for (DebugInfoEntryList::ConstIterator it = subprogramEntry->Parameters() .GetIterator(); DebugInfoEntry* entry = it.Next();) { + if (entry->Tag() != DW_TAG_formal_parameter) + continue; + BString parameterName; DwarfUtils::GetDIEName(entry, parameterName); - if (entry->Tag() != DW_TAG_formal_parameter) + if (parameterName.Length() == 0) continue; DIEFormalParameter* parameterEntry