frysk.symtab
Class Symbol

java.lang.Object
  extended by frysk.symtab.Symbol
Direct Known Subclasses:
DwflSymbol

public class Symbol
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.


Method Summary
 long getAddress()
          Return the address of the symbol.
 String getDemangledName()
          Return the demangled name, or "" of the name isn't known.
 String getName()
          Return the mangled name (the raw string found in the symbol table).
 long getSize()
          Return the size of the symbol (possibly zero).
 boolean isFunctionSymbol()
           
 String toString()
          Dump the symbol's contents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAddress

public long getAddress()
Return the address of the symbol.


getSize

public long getSize()
Return the size of the symbol (possibly zero).


getName

public String getName()
Return the mangled name (the raw string found in the symbol table). Or NULL, of the name is unknown.


getDemangledName

public String getDemangledName()
Return the demangled name, or "" of the name isn't known. XXX: Is returning "" better than null? Sounds like a cheat for code that should be conditional on the symbol being known.


toString

public String toString()
Dump the symbol's contents.

Overrides:
toString in class Object

isFunctionSymbol

public boolean isFunctionSymbol()