Author: tberghammer Date: Fri Feb 26 08:21:27 2016 New Revision: 262016 URL: http://llvm.org/viewvc/llvm-project?rev=262016&view=rev Log: Fix address class lookup for absolute symbols
Modified: lldb/trunk/source/Symbol/ObjectFile.cpp Modified: lldb/trunk/source/Symbol/ObjectFile.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ObjectFile.cpp?rev=262016&r1=262015&r2=262016&view=diff ============================================================================== --- lldb/trunk/source/Symbol/ObjectFile.cpp (original) +++ lldb/trunk/source/Symbol/ObjectFile.cpp Fri Feb 26 08:21:27 2016 @@ -379,13 +379,17 @@ ObjectFile::GetAddressClass (addr_t file case eSectionTypeARMextab: case eSectionTypeCompactUnwind: return eAddressClassRuntime; - case eSectionTypeAbsoluteAddress: case eSectionTypeELFSymbolTable: case eSectionTypeELFDynamicSymbols: case eSectionTypeELFRelocationEntries: case eSectionTypeELFDynamicLinkInfo: case eSectionTypeOther: return eAddressClassUnknown; + case eSectionTypeAbsoluteAddress: + // In case of absolute sections decide the address class based on the symbol + // type because the section type isn't specify if it is a code or a data + // section. + break; } } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits