Author: anevilyak Date: 2010-12-07 00:33:07 +0100 (Tue, 07 Dec 2010) New Revision: 39752 Changeset: http://dev.haiku-os.org/changeset/39752 Modified: haiku/trunk/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp Log: Also dump the name of the function to which the current call frame belongs. Modified: haiku/trunk/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp =================================================================== --- haiku/trunk/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp 2010-12-06 23:15:15 UTC (rev 39751) +++ haiku/trunk/src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp 2010-12-06 23:33:07 UTC (rev 39752) @@ -434,9 +434,15 @@ if (function == NULL) return B_BAD_VALUE; - TRACE_CFI("DwarfImageDebugInfo::CreateFrame(): subprogram DIE: %p\n", - function->SubprogramEntry()); + FunctionID* functionID = functionInstance->GetFunctionID(); + if (functionID == NULL) + return B_NO_MEMORY; + Reference<FunctionID> functionIDReference(functionID, true); + TRACE_CFI("DwarfImageDebugInfo::CreateFrame(): subprogram DIE: %p, " + "function: %s\n", function->SubprogramEntry(), + functionID->FunctionName().String()); + int32 registerCount = fArchitecture->CountRegisters(); const Register* registers = fArchitecture->Registers(); @@ -531,11 +537,6 @@ // Note, this is correct, since we actually retrieved the return // address. Our caller will fix the IP for us. - FunctionID* functionID = functionInstance->GetFunctionID(); - if (functionID == NULL) - return B_NO_MEMORY; - Reference<FunctionID> functionIDReference(functionID, true); - // create function parameter objects for (DebugInfoEntryList::ConstIterator it = subprogramEntry->Parameters() .GetIterator(); DebugInfoEntry* entry = it.Next();) {