[Lldb-commits] [lldb] r262016 - Fix address class lookup for absolute symbols
Tamas Berghammer via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 26 06:21:28 PST 2016
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;
}
}
}
More information about the lldb-commits
mailing list