From 783cbdcd89c30bb5f528e72b04b98ea94d7c7669 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 4 Mar 2015 10:28:15 +0000 Subject: Use the unified section list when generating a symbol table Summary: Symbol table generation code was failing to take into account the debug symbols because the object file was looking only into its own section list when doing the generation, even though the debug symbols from another object file were correctly detected and loaded by the SymbolVendor. This changes the code to use the unified section list, which fixes this problem. Test Plan: I do not intend do submit this yet since it causes (or more like, exposes) the issue in D7884, but I wanted to put this out here, so that anyone who wants to take a look at it can do so. (And I also wanted to know if this is the right approach to the problem :). Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7913 llvm-svn: 231229 --- lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp') diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 1a2ef87f6d6d..a2d1c2205281 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -2364,7 +2364,7 @@ ObjectFileELF::GetSymtab() if (m_symtab_ap.get() == NULL) { - SectionList *section_list = GetSectionList(); + SectionList *section_list = module_sp->GetSectionList(); if (!section_list) return NULL; -- cgit v1.2.3