frysk.dwfl
Class ElfSectionCache
java.lang.Object
frysk.dwfl.ElfSectionCache
public class ElfSectionCache
- extends Object
Class to provide and cache requested ElfSectionHeaders based on name.
Method Summary |
ElfSectionHeader |
getSectionHeader(String name,
long addr)
Returns an ElfSectionHeader representing the ELF header for this class' Task object as
given by the section name and module address in the parameters to this method. |
Task |
getTask()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
task
private Task task
sectionMap
private WeakHashMap sectionMap
ElfSectionCache
public ElfSectionCache(Task task)
getSectionHeader
public ElfSectionHeader getSectionHeader(String name,
long addr)
- Returns an ElfSectionHeader representing the ELF header for this class' Task object as
given by the section name and module address in the parameters to this method. Also
caches the headers in a WeakHashMap for later use.
- Parameters:
name
- The name of the sectionaddr
- The module address
- Returns:
- The corresponding ElfSectionHeader
getTask
public Task getTask()