Author: bonefish Date: 2009-10-12 05:17:17 +0200 (Mon, 12 Oct 2009) New Revision: 33542 Changeset: http://dev.haiku-os.org/changeset/33542/haiku Modified: haiku/trunk/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp Log: Ignore unnamed function parameters in the stack frame. Modified: haiku/trunk/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp =================================================================== --- haiku/trunk/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp 2009-10-12 03:16:11 UTC (rev 33541) +++ haiku/trunk/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp 2009-10-12 03:17:17 UTC (rev 33542) @@ -537,9 +537,12 @@ // 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