frysk.symtab
Class SymbolFactory

java.lang.Object
  extended by frysk.symtab.SymbolFactory

public class SymbolFactory
extends Object

The object-file symbol. Typically obtained by reading ELF information. Do not confuse this with higher-level symbolic information, such as function names, obtained from debug information such as DWARF.


Field Summary
private static Log fine
           
private static Log finest
           
static Symbol UNKNOWN
          A special unknown symbol.
private static Log warning
           
 
Constructor Summary
SymbolFactory()
           
 
Method Summary
static LinkedList getAddresses(Task task, String name)
           
static LinkedList getAddresses(Task task, String name, ModuleMatcher matcher)
          Get address list by symbol name.
static List getPLTEntries(DwflModule module, Map symbols)
          Return list of PLTSymbol objects representing PLT entries in this module.
private static Map getPublicTable(DwflModule module)
           
static Symbol getSymbol(Task task, long address)
          Return the symbol at the specified address within task.
static List getSymbols(DwflModule module)
          Return symbols in given DwflModule.
static Map getSymbolTable(DwflModule module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fine

private static final Log fine

finest

private static final Log finest

warning

private static final Log warning

UNKNOWN

public static final Symbol UNKNOWN
A special unknown symbol.

Constructor Detail

SymbolFactory

public SymbolFactory()
Method Detail

getSymbol

public static Symbol getSymbol(Task task,
                               long address)
Return the symbol at the specified address within task.


getPublicTable

private static Map getPublicTable(DwflModule module)

getSymbolTable

public static Map getSymbolTable(DwflModule module)

getSymbols

public static List getSymbols(DwflModule module)
Return symbols in given DwflModule.

Returns:
List<DwflSymbol>

getPLTEntries

public static List getPLTEntries(DwflModule module,
                                 Map symbols)
Return list of PLTSymbol objects representing PLT entries in this module.

Parameters:
symbols - Symbol table previously loaded through getSymbolTable. May be null, in that case new symbol table will be loaded by the method.

getAddresses

public static LinkedList getAddresses(Task task,
                                      String name,
                                      ModuleMatcher matcher)
Get address list by symbol name.

Parameters:
task -
name -
Returns:
address list

getAddresses

public static LinkedList getAddresses(Task task,
                                      String name)