[Lldb-commits] [lldb] r180048 - When parsing dwarf, add C functions to the fullname index.
Matt Kopec
Matt.Kopec at intel.com
Mon Apr 22 14:13:23 PDT 2013
Author: mkopec
Date: Mon Apr 22 16:13:22 2013
New Revision: 180048
URL: http://llvm.org/viewvc/llvm-project?rev=180048&view=rev
Log:
When parsing dwarf, add C functions to the fullname index.
This fixes function type resolution for C functions when requesting full function names.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp?rev=180048&r1=180047&r2=180048&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp Mon Apr 22 16:13:22 2013
@@ -817,6 +817,9 @@ DWARFCompileUnit::Index (const uint32_t
func_methods.Insert (ConstString(name), die.GetOffset());
else
func_basenames.Insert (ConstString(name), die.GetOffset());
+
+ if (!is_method && !mangled_cstr && !objc_method.IsValid(true))
+ func_fullnames.Insert (ConstString(name), die.GetOffset());
}
if (mangled_cstr)
{
@@ -854,6 +857,8 @@ DWARFCompileUnit::Index (const uint32_t
func_fullnames.Insert (mangled.GetDemangledName(), die.GetOffset());
}
}
+ else
+ func_fullnames.Insert (ConstString(name), die.GetOffset());
}
break;
More information about the lldb-commits
mailing list