diff options
| author | Matt Kopec <Matt.Kopec@intel.com> | 2013-04-22 21:13:22 +0000 |
|---|---|---|
| committer | Matt Kopec <Matt.Kopec@intel.com> | 2013-04-22 21:13:22 +0000 |
| commit | 365e3359ab11f71091d3414b96600700f3314862 (patch) | |
| tree | 3b413c734df7b30d79650c8a8b84c0669fe33ac1 /lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp | |
| parent | 481846026936db219ba9e50d97f4b3c9feea6a58 (diff) | |
| download | bcm5719-llvm-365e3359ab11f71091d3414b96600700f3314862.tar.gz bcm5719-llvm-365e3359ab11f71091d3414b96600700f3314862.zip | |
When parsing dwarf, add C functions to the fullname index.
This fixes function type resolution for C functions when requesting full function names.
llvm-svn: 180048
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp index 73d5ff93b58..ed615c42a90 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp @@ -817,6 +817,9 @@ DWARFCompileUnit::Index (const uint32_t cu_idx, 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 cu_idx, func_fullnames.Insert (mangled.GetDemangledName(), die.GetOffset()); } } + else + func_fullnames.Insert (ConstString(name), die.GetOffset()); } break; |

